Negative Margin on p-grid class

UI Components for React
Post Reply
kevinquinn1918
Posts: 14
Joined: 26 Aug 2020, 14:14

10 Sep 2020, 16:22

I'm using the p-grid class and I noticed it has -0.5rem margins. This caused an overflow in the x-direction for small screen widths since I'm not using a container for <576px width. I'm just curious as to the reason for these negative margins. I removed them and put them on my site and I don't see any immediate issues with it. I'm just wondering if there is something I should be aware of.

Thanks in advance for any responses.

mert.sincan
Posts: 5281
Joined: 29 Jun 2013, 12:38

10 Oct 2020, 22:27

Hi,

Sorry for the delayed response. You can use p-nogutter class to reset all margin;
https://github.com/primefaces/primeflex ... meflex.css

Best Regards,

Post Reply

Return to “PrimeReact”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 20 guests