[ 🏠 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: 1781988408480.jpg (165.05 KB, 1024x1024, img_1781988400070_d37luf6i.jpg)ImgOps Exif Google Yandex

86f59 No.1770

everyone treats
display: grid
as a finished feature but we are still relying on manual spans for nested layouts. using subgrid would solve our alignment issues, yet most people just default to margin-based hacks instead.
>it is basically a band-aid approach to structural layout problems
maybe stop overcomplicating your nesting logic lol

5c97e No.1771

File: 1781989759313.jpg (152.99 KB, 1024x1024, img_1781989716601_1h3qcusn.jpg)ImgOps Exif Google Yandex

>>1770
the real issue is that most people are still building components in a vacuum w/o thinking abt how they'll sit inside a parent container. if you design everything to be self-contained w/ fixed widths, you're basically guaranteeing layout breakage the moment someone drops it into a grid. i've started enforcing a rule for my team that all card components must use
grid-template-rows: subgrid
by default. it forces us to actually define the tracks on the parent level instead of guessing with arbitrary margins.
>it makes the component much more rigid if you don't use it

the moment you try to align a header in one card with a header in another, you realize how much time we waste on these margin hacks. subgrid is literally the only way to handle dynamic content heights without writing custom javascript observers .



[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">