Syntax - Tasty Web Development Treats cover image

All About CSS Grid

Syntax - Tasty Web Development Treats

00:00

CSS Grid Doesn't Do Enthrow

With reusable components you want your component to work well Whether it's a child of something else and it's sort of stuck and constrained, right? Or if it's on its own filling up the entire layout you want that component to be smart enough to handle those changes. There's no Enthrow selector to select each row You can't tiger stripe each individual row or column that you have So I wrote, I don't know, 15 lines of JavaScript to add a class of row 1, row 2, row 3 Or odd even,. It wasn't too hard, but you still do still use CSS Grid.

Play episode from 53:27
Transcript

The AI-powered Podcast Player

Save insights by tapping your headphones, chat with episodes, discover the best highlights - and more!
App store bannerPlay store banner
Get the app