Re: [csswg-drafts] [CSS2] Questions about vertical margin and horizontal margin in collapsing margins

As far as the most up to date language that the group has resolved for margins and collapsing, I'd recommend reading the current draft.

[https://drafts.csswg.org/css-box-3/#collapsing-margins](https://drafts.csswg.org/css-box-3/#collapsing-margins)

But more particularly, "vertical margins" refer to `margin-top` and `margin-bottom`. And with that understanding I think all your confusion could be cleared up. And when you say...

> I thought that vertical margins mean margin left and margin right because in 8.3 (https://www.w3.org/TR/CSS2/box.html#margin-properties), "vertical margins will not have any effect on non-replaced inline elements." is written, and above the description of margin-left and margin-right, "These properties have no effect on non-replaced inline elements." is written.

The green text is referring to the previous properties described, margin-top/margin-bottom, like a footnote, along with the green text in the "percentage" paragraph above.

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

Received on Tuesday, 12 June 2018 17:04:49 UTC