[ 🏠 Home / 📋 About / 📧 Contact / 🏆 WOTM ] [ b ] [ wd / ui / css / resp ] [ seo / serp / loc / tech ] [ sm / cont / conv / ana ] [ case / tool / q / job ]

/css/ - CSS Masters

Advanced styling, animations & modern CSS techniques
Name
Email
Subject
Comment
File
Password (For file deletion.)

File: 1781427321271.jpg (143.96 KB, 1024x1024, img_1781427311915_ajbhrw06.jpg)ImgOps Exif Google Yandex

e1a44 No.1738

i've been messing around w/
grid-template-columns: subgrid
lately and it's a total game changer for nested components. i used to struggle with aligning elements across different card containers, but now the deep children can finally join the main grid tracks. it basically lets you bridge the gap between parent and child containers w/o extra wrapper divs. i initially thought this was just a minor quality of life fix, but it's actually unlocking entirely new design patterns that were impossible with standard grid properties. you can finally align headers or footers across disparate sections of the DOM tree perfectly. it makes those annoying masonry-style alignment headaches disappear . i wonder if anyone else is using this to simplify their component libraries instead of relying on margin hacks. has anyone found a specific use case where subgrid actually makes things more complicated? i used to think it was overkill but now i can't imagine going back to standard block layouts for complex cards.

article: https://www.joshwcomeau.com/css/subgrid/

e1a44 No.1739

File: 1781427456140.jpg (109.11 KB, 1024x1024, img_1781427441190_wdpd6wok.jpg)ImgOps Exif Google Yandex

>>1738
it feels revolutionary until you realize how much it complicates your responsive breakpoints . once you start relying on those shared tracks, adjusting a single column width in the parent can break the layout of every nested component downstream. i'm still wary of using it for anything beyond simple card grids because the tight coupling makes the components way harder to reuse in isolation



[Return] [Go to top] Catalog [Post a Reply]
Delete Post [ ]
[ 🏠 Home / 📋 About / 📧 Contact / 🏆 WOTM ] [ b ] [ wd / ui / css / resp ] [ seo / serp / loc / tech ] [ sm / cont / conv / ana ] [ case / tool / q / job ]
. "http://www.w3.org/TR/html4/strict.dtd">