Controlling leftover Grid items with pseudo-selectors

Michelle Barker / filed under CSS Grid Layout, HTML & CSS

I recently wrote about some of the cases where you might want to use Grid instead of flexbox, and vice-versa. One of the scenarios I pointed out might be a better case for using flexbox is when you want to control the behaviour of any leftover grid items that don’t fill an entire row.

Join thousands of product people and get the latest articles and resources from my curation every day or week.