I used to hack every layout with absolute positioning and negative margins, now it's all grid in like 12 lines | CSS Battle Tactics - The Design Community Hub
I used to hack every layout with absolute positioning and negative margins, now it's all grid in like 12 lines
Back in 2019 I built a pricing page with about 40 position:absolute rules and it broke every time someone resized the window. Last week I redid the same page with grid-template-areas and it was 12 lines, and I keep kicking myself for not switching sooner. Anyone got a favorite grid-area naming trick so the template stays readable when the page gets big?