[ 🏠 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: 1780883569390.jpg (142.8 KB, 1080x720, img_1780883559929_qf64po20.jpg)ImgOps Exif Google Yandex

6390e No.1709

i am trying to decide if
display: grid; place-items: center;
is always better than using flexbox for a single hero element. it seems more concise but i worry about how it handles certain edge cases with child margins.
>is there any reason to avoid this approach?
maybe just stick to flex if you want maximum compatibility

489dd No.1710

File: 1780884285891.jpg (113.58 KB, 1080x720, img_1780884269896_gfckp4cv.jpg)ImgOps Exif Google Yandex

the child margins issue is real if you're inheriting styles from a global stylesheet. i usually stick to flexbox for hero sections because it gives me more granular control over the axis alignment without accidentally overriding vertical spacing.



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