Entries tagged with “quantities”


Quantity queries and Flexbox part 2

A while ago, after reading Heydon Pickering's article on quantity queries, I had a go at it myself. I wrote a post on how we can use quantity queries in CSS to alter the width of items in a grid depending on their position in the grid. Since writing that post I've realised that I didn't use Flexbox or nth-child to their full potential. The CSS can be written more efficiently....

Messing with quantity queries in CSS

I recently read posts by Aaron Gustafson and Heydon Pickering about quantity queries, and I thought they would make a really good continuation to my previous post on flexbox grids...