May 8, 2020 11:22 pm GMT
Original Link: https://web.dev/flexbox-gap/
Chromium lands Flexbox gap
I mentioned this the other day via Michelle Barker’s coverage, but here I’ll link to the official announcement. The main thing is that we’ll be getting gap
with flexbox, which means:
.flex-parent { display: flex; gap: 1rem;}.flex-child { flex: 1;}
That’s excellent, as putting space in between flex items has been tough in the past. We have justify-content: space-between
, which is nice sometimes, but that doesn’t allow you to explicitly tell the flex container how … Read article “Chromium lands Flexbox gap”
The post Chromium lands Flexbox gap appeared first on CSS-Tricks.
Original Link: https://web.dev/flexbox-gap/
Share this article:
Tweet
View Full Article