[ 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: 1795436477189.jpg (180.3 KB, 1212x872, img_1795436439756_dq58nuss.jpg)ImgOps Exif Google Yandex

0ba84 No.2430

I'm sick of seeing text just cut off mid-word because someone forgot how long a single string gets when you scale up an H1. It's not enough to just set a container width; you actually need to test if your letter spacing is pushing things into a horizontal scroll nightmare on small viewports. Try building a component this week that uses
hyphens: auto
and see if it actually saves your layout from looking like garbage.

h1 {hyphens: auto;overflow-wrap: break-word;}

0ba84 No.2453

File: 1795825351292.jpg (203.62 KB, 1212x872, img_1795825335810_94t393ef.jpg)ImgOps Exif Google Yandex

>>2430
hyphens: auto is a disaster for some languages though. i usually just use clamp() to scale that h1 font size so it doesn't hit the edge in the first place.

0ba84 No.2461

File: 1795905789489.jpg (139.93 KB, 1000x1000, img_1795905775187_ju7adelt.jpg)ImgOps Exif Google Yandex

>>2453
>i usually just use clamp() to scale that h1 font size so it doesn't hit the edge in the first place.

I tried using
clamp()
on a hero section last month but the math got weird once I added padding to the parent container. The scaling felt totally off when the viewport width changed slightly. What specific range of values are you actually using for your min and max? It's hard to get it right without it looking way too small on older iPhones or massive on a tablet. Sometimes it just feels like a band-aid instead of a real fix.



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