Jj Del Carpio

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 margins (or just one of them, if they are equal), a behavior known as margin collapsing. Note that the margins of floating and absolutely po...

https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Box_... 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

Reply or react to this post via Webmentions or reply or like to the Mastodon, Twitter or Instagram post.