[ 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: 1793749033064.jpg (209.66 KB, 1024x1024, img_1793749024666_yynrn5eo.jpg)ImgOps Exif Google Yandex

3502f No.2326

I've been seeing too many cards with weirdly stretched text because of default flex behavior. Setting width to min-content helps when you want your label or small icon container to only take up the space its longest word needs. It stops that unnecessary awkward stretching on wide screens.

.label {flex: 0 1 auto;width: min-content;}


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