DEV Community

Discussion on: Don't use margin in CSS

Collapse
 
lixeletto profile image
Camilo Micheletto

About the negative margin, Bootstrap has a use case!

In the row element, Bootstrap uses negative margins to adjust the outer elements additional horizontal spacing due to the .container class horizontal padding.

Some comments have been hidden by the post's author - find out more