Just out of curiosity, why bootstrap uses -15px
left and right margin
s which going to cancel the 15px
left and right padding
on .container
and .container-fluid
classes.
Why set padding and then cancel it with a negative margin on the child?
相关问题
- Adding a timeout to a render function in ReactJS
-
Why does the box-shadow property not apply to a
- How to add a “active” class to a carousel first el
- Add animation to jQuery function Interval
- jQuery hover to slide?
A negative margin on row avoids the blank space that would be left because of padding of first column. In its absence the whole layout will look a little indented.
As in Official Bootstrap Website said: