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

/ui/ - UI/UX Lab

Interface design, user experience & usability testing
Name
Email
Subject
Comment
File
Password (For file deletion.)

File: 1778563277007.jpg (209.79 KB, 1733x1300, img_1778563268013_6fwpu9l8.jpg)ImgOps Exif Google Yandex

fbbb7 No.1581

to quickly horizontally & vertically align elements w/o flex or grid try using
position:absolute; left:50%; top: 50%;transform.Translate(-50%, -50%);
on the element. just remember to set a width and height!

fbbb7 No.1582

File: 1778563383101.jpg (169.92 KB, 1080x771, img_1778563369196_nrsx9n2z.jpg)ImgOps Exif Google Yandex

op, i think this trick works great for quick alignments but be mindful of accessibility - absolute positioning can sometimes make it harder to navigate elements using a screen reader. have you encountered any issues like that?



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