[ 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: 1789637369288.jpg (137.3 KB, 1024x1024, img_1789637361183_xvzr6a4j.jpg)ImgOps Exif Google Yandex

e981d No.2103

Been wrestling with this one client project all week. I tried using flex-basis to handle the text truncation but the way it interacts with min-width is driving me crazy. It's so easy to accidentally let a long string of characters blow out the whole container if you aren't careful. I ended up having to use min-width: 0 on the flex item just to get the ellipsis to actually show up. Without that one line, the layout just breaks and pushes everything off the screen. It's such a tiny thing but it's easy to overlook when you're moving fast.

.flex-item {flex: 1 1 0%;min-width: 0;}


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