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

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