this post was submitted on 07 Oct 2025
3 points (100.0% liked)

CSS

640 readers
5 users here now

founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] tyler@programming.dev 1 points 4 weeks ago (2 children)

Am I missing something? Isn’t this just <table>?

[–] codeinabox@programming.dev 1 points 4 weeks ago (1 children)

Similar but different, this blog post goes into more detail: Are nested grids like nested tables?

[–] tyler@programming.dev 1 points 4 weeks ago

But this isn't a nested table or grid. It's just a grid.. and just a table. I know how css grid works, quite well actually, it's one of the parts of css I'm actually best at. This is just a simple table though. You would get the alignment out of the box by just using table cells. Unless I'm missing something this isn't an actual use case for subgrid. Subgrid is more useful when you have something that needs to align to the parent when the rest of the content didn't need to align to the parent.