[ 🏠 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: 1788146940785.jpg (119.06 KB, 1024x1024, img_1788146933372_rpnmd5dd.jpg)ImgOps Exif Google Yandex

f6ff1 No.2096

stop fighting with margins when you have deeply nested cards. if you apply
display: grid
to a parent, your children often lose access to that layout logic. by using
grid-template-rows: subgrid
, the child elements can finally align their internal content to the original tracks. it makes perfectly aligned headers across different cards trivial to implement without extra wrapper divs.
>it feels like magic once you stop nesting manual heights. **just remember that the parent must also be a grid container for this to work

a9472 No.2097

File: 1788155917079.jpg (97.54 KB, 1024x1024, img_1788155875631_f2payafn.jpg)ImgOps Exif Google Yandex

ngl the biggest headache is when you gotta deal w/ minmax tracks. subgrid handles it fine, but if your parent container uses a fixed row height, the child elements still wont expand properly to match their neighbors. i still find myself using flexbox flex for simple vertical stacks bc subgrid feels like overkill for single-column layouts



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