
61 :has()
The CSS Podcast
00:00
Can You Change the Layout of a Grid?
There's a concept called quantity queries. Change your layout based on the number of children you have. You could also use affordances from and children like even or odd to change the layout based on even or odd children. This quantity query syntax I learned from Michelle Barker, but there's also Hayden Pickering's original one from 2015. And we'll have links in the show notes to both of these examples,. But super cool.
Play episode from 08:47
Transcript


