News for hackers. Stuff that matters.
Re:Brand New Layouts with CSS Subgrid by Izkata on Tuesday November 25, 2025 @10:28PM (#46053900)
And on the second one, you could use any other unit instead of fr for the image to set its width consistently, then fr on the text to have it use up whatever remains.
Re:Brand New Layouts with CSS Subgrid by bradly on Tuesday November 25, 2025 @10:46PM (#46053997)
I also wasn't understanding the value looking at the first two examples, but the pricing packages example I do think I would struggle to implement in a clean way using traditional css.
Re:Brand New Layouts with CSS Subgrid by b2ccb2 on Wednesday November 26, 2025 @04:08AM (#46055612)
I'd use <table>. It literally is a table. And for mobile just do a media query to turn it into a flexbox.
Re:Brand New Layouts with CSS Subgrid by PxldLtd on Wednesday November 26, 2025 @05:35AM (#46056061)
Yeah the claim that tables are hard to style for such a simple design doesn't really hold up in my opinion.

This took two seconds to make https://codesandbox.io/p/sandbox/5ry4rl

I do agree though that subgrid makes the HTML more readable though so I'm all for it.