I just saw this sentence:
By setting the padding attribute for "column", you can create a gap (gutter) between columns. By setting a negative margin for the .row element to offset the padding set for the .container element, the padding is indirectly offset for the "column" contained in the "row".
I don’t quite understand what it means. Is there any more popular explanation or example? ?
The negative margin value of row is mainly to eliminate the margins of the leftmost and rightmost column elements and containers
You can read the original text (http://getbootstrap.com/css/#...)
We know that the order of using grids in bootstrap is container -> row -> col
Their css definition:
If there is no negative margin offset, there will be a gap before and after. You can remove the negative margin yourself and compare to see the difference