W3C home > Mailing lists > Public > public-css-archive@w3.org > June 2018

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

From: jonjohnjohnson via GitHub <sysbot+gh@w3.org>
Date: Tue, 12 Jun 2018 17:04:33 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-396663269-1528823072-sysbot+gh@w3.org>
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

This archive was generated by hypermail 2.3.1 : Tuesday, 12 June 2018 17:04:50 UTC