Re:Flexbox and Grids: your layout’s best friends
by joshribakoff on Monday November 06, 2017 @02:54PM
(#15638480)
Your margin scenario is exactly what css grid handles nicely (grid gutters)
[ Parent
| on HN ]
Re:Flexbox and Grids: your layout’s best friends
by c-smile on Monday November 06, 2017 @03:06PM
(#15638593)
Yes but flex units can be used not just in grid context.
Consider this:
<p>Foo <input style="width:1fr /> bar.</p>
That <input> will span free space left in the p element from "Foo " and " bar."