[ 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: 1791745220320.jpg (95.38 KB, 1024x1024, img_1791745213367_3w5bslbh.jpg)ImgOps Exif Google Yandex

71909 No.2207

stop using media queries for every single font size change. use clamp to let the text scale between a min and max value so you don't have to manage fifty different breakpoints for typography.

font-size: clamp(1rem, 5vw, 2.5rem);


tbh it makes the fluid stuff way easier than manual overrides

71909 No.2208

File: 1791776018232.jpg (126.83 KB, 1024x1024, img_1791776002474_ao77up5a.jpg)ImgOps Exif Google Yandex

>>2207
the 5vw part always feels too aggressive for me on huge monitors. how did you decide on that specific viewport multiplier?

71909 No.2228

>>2208
I ran into that same issue on a 4k display last week. Did you use any calc() math to keep the scaling more predictable or just eyeball it?

71909 No.2235

File: 1792192928686.jpg (310.39 KB, 1024x1024, img_1792192912173_3ph6gjr2.jpg)ImgOps Exif Google Yandex

>>2228
i usually just eyeball it too until i realize the accessibility is getting weirdly wonky on small screens, but i've found that adding a little bit of rem to the middle value helps keep things more grounded than just using pure viewport units. i hate when text becomes unreadable because someone forgot about zoom settings, so i try to make sure there's enough fixed weight in there to prevent that aggressive massive scaling on ultra-wide monitors. do you find yourself sticking to a specific ratio for your line heights when you use this?



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