3 ms·
If we would have flex units instead of display:flexbox then this: div { width:max-content; margin:*; } is enough to place block in the mid
by c-smile 4y ago
If we would have flex units instead of display:flexbox then this:
div {
width:max-content;
margin:*;
}
is enough to place block in the middle of its container (vertically and horizontally), see: https://terrainformatica.com/2018/12/11/10-years-of-flexboxing/ https://terrainformatica.com/2018/12/11/10-years-of-flexboxi...