Jj's web stream

The top and bottom margins of blocks are sometimes combined (collapsed) into a single margin whose size is the largest of the individual...

Mastering margin collapsing - CSS: Cascading Style Sheets | MDN On MDN Web Docs

This explains a lot of CSS nonsense.Sadly it is also nonsense itself.

I always fight it with P elements.

Shared on:

Jj Avatar of Jj