W3C home > Mailing lists > Public > public-css-archive@w3.org > February 2017

Re: [csswg-drafts] [css-flexbox] Make it easier to define margins that only apply between flex-items

From: Brad Kemper via GitHub <sysbot+gh@w3.org>
Date: Mon, 13 Feb 2017 20:02:11 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-279505653-1487016130-sysbot+gh@w3.org>
I was thinking about this recently, before I saw this thread. My 
thought was that there should be something like 'margin-between' that 
changed the computed values of margin-*. So, margin-between-x would 
change horizontal margins (but not the left margin of the leftmost 
items or the right margin of the rightmost items). margin-between-y 
would work similarly for vertical. Margin-between-inline and 
margin-between-block would be even better. 

This is needed for things other than flex, such as a series of 
inline-block items on one or more lines. It is needed in horizontal 
and vertical. And it would benefit from normal margin collapsing, when
 some items on the line didn't have margin-between, but had some other
 margin. 

I've needed this since before I ever started using flexbox. 

-- 
GitHub Notification of comment by bradkemper
Please view or discuss this issue at 
https://github.com/w3c/csswg-drafts/issues/592#issuecomment-279505653 
using your GitHub account
Received on Monday, 13 February 2017 20:02:19 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:08 UTC