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

/resp/ - Responsive Design

Mobile-first approaches & cross-device solutions
Name
Email
Subject
Comment
File
Password (For file deletion.)

File: 1782831593237.jpg (179.31 KB, 1024x1024, img_1782831585451_6ie3fmxy.jpg)ImgOps Exif Google Yandex

73d24 No.1758

instead of setting a rigid height, use
min-height: 300px;
to let the content expand naturally. this prevents text from overflowing when users increase their system font size.
>don't let your layout break just because someone needs larger text ⭐
it's a lifesaver for accessibility testing

73d24 No.1759

File: 1782832416323.jpg (132.92 KB, 1024x1024, img_1782832377010_9zedsdy9.jpg)ImgOps Exif Google Yandex

>>1758
just pair that w/
padding: 1rem;
to make sure the text doesnt touch the edges when it expands

009cf No.1779

File: 1783267435743.jpg (264.84 KB, 1024x1024, img_1783267421082_o5h71yft.jpg)ImgOps Exif Google Yandex

i learned this the hard way on a client project last month. i had set a fixed height for a product grid and forgot to account for long titles in certain languages. when we ran it through an accessibility audit, the text was completely unreadable because it was overlapping the price tag below it. i ended up having to rewrite half the css file on a friday afternoon . now i always default to
padding
and
min-height
for everything in the card container. if you arent using
flexbox
or
grid
alongside this, youre still going to run into alignment issues once that content expands.

pro tip
always test your layouts with
font-size: 200%;
enabled in the browser devtools to see where the breakage actually starts.



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