13
msdsk
3y

I've been working with HTML/CSS for my whole adult life and yet I still sometimes get surprised by how margin collapsing works. No, the section below does not have any negative margins. The world is just an unending mystery.

Comments
  • 6
    Margin collapse is annoying af. And wonderful.
  • 5
    CSS's terminology can be confusing.

    And it never seems like there is a top down way to understand it all, it's such a hodgepodge.
  • 2
    @ScriptCoded

    Right? I hate it when it doesn't work but Jesus I love it so much when it does.
  • 0
    Margin collapse would be pretty awesome if it would work for elements inside different boxes and for vertical margins too.
  • 0
    This shit old grid systeme that add margin and after that add minus margin =_=
  • 0
    I am pretty skilled at front end and I could not tell you wtf is going on there just from the screenshot
Add Comment