▲ 4 ▼ Use CSS subgrid to align deeply nested text. (eystein.no) submitted 1 year ago by codeinabox@programming.dev to c/css@programming.dev 3 comments fedilink hide all child comments
[–] tyler@programming.dev 1 point 1 year ago (2 children) Am I missing something? Isn’t this just <table>? permalink fedilink source hideshow 2 child comments replies: [–] codeinabox@programming.dev [S] 1 point 1 year ago (1 child) Similar but different, this blog post goes into more detail: Are nested grids like nested tables? permalink fedilink source parent hideshow 1 child comment replies: [–] tyler@programming.dev 1 point 1 year 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. permalink fedilink source parent
[–] codeinabox@programming.dev [S] 1 point 1 year ago (1 child) Similar but different, this blog post goes into more detail: Are nested grids like nested tables? permalink fedilink source parent hideshow 1 child comment replies: [–] tyler@programming.dev 1 point 1 year 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. permalink fedilink source parent
[–] tyler@programming.dev 1 point 1 year 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. permalink fedilink source parent
all 3 comments