Re: [csswg-drafts] [CSS2] Clarify margin collapsing behavior (#11306)

> Please provide an example

Sure: `<p></p>`.

> explain the concept of margins 'collapsing through it'.

The top margin is typically before the element, and the bottom margin after the element. But here its top and bottom margins collapse even though the element would typically be in between. So we say the margins collapse through the element.

-- 
GitHub Notification of comment by Loirooriol
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/11306#issuecomment-2510403969 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Monday, 2 December 2024 01:58:10 UTC