T
16

Grid lines vs grid areas: which one do you actually use more?

I keep seeing people online set up whole layouts with numbered grid lines, but I think naming your grid areas is way easier to read later. For example, I built a dashboard last month and the 'grid-template-areas' property made it super clear where everything went. Which method do you guys lean towards for complex stuff?
2 comments

Log in to join the discussion

Log In
2 Comments
danieljenkins
You mentioned building a dashboard with grid-template-areas, and I get why that feels clearer. But honestly, for really complex stuff, I find grid lines give you more control. Like if you have a card component that needs to span multiple rows but only sometimes, trying to describe that with areas gets messy fast. I'll use line numbers for the main layout and maybe areas for simple page sections.
8
anthony165
Wait, is this grid line vs area debate even a real problem, @danieljenkins?
8