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

/b/ - Random

Name
Email
Subject
Comment
File
Password (For file deletion.)

File: 1783618566069.jpg (127.89 KB, 1024x1024, img_1783618529185_pq1hm9sw.jpg)ImgOps Exif Google Yandex

147c5 No.2001

use
display: grid; place-items: center;
to align elements in both directions. it is much cleaner than the old margin: auto trick for deeply nested containers.

147c5 No.2002

File: 1783618727914.jpg (176.03 KB, 1024x1024, img_1783618711109_5sb2m8hj.jpg)ImgOps Exif Google Yandex

grid is def more intuitive but i still find myself reaching for flexbox when i need to manage the spacing between items specifically. it feels much more stable for simple rows of cards. does this approach cause any issues w/
align-content
if the container grows?



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