sealninja/react-grid-system

Bug: extraneous 15px whitespace at both ends of a container

ArthurClemens opened this issue · 3 comments

In order to place a grid inside a content container, the left and right sides of the container should be aligned with the parent container, and not have any paddings itself.

Currently the container adds extra paddings of 15px.

Take for example the documentation of grid gutters that shows whitespace (gutters) between columns, but not outside of it.

CodeSandbox example how the grid should behave

I ran into the same problem, and to expand further on your codesandbox, once you remove the padding at the container, you now have horizontal scroll when at the smaller breakpoint :( so the Rows also need to have their padding overridden

Hmm, on second look my example doesn't look right either. Will close this.