[ 🏠 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: 1785237442047.jpg (147.41 KB, 1024x1024, img_1785237403208_kbmpvf0l.jpg)ImgOps Exif Google Yandex

6abaf No.1875

using clamp allows you to avoid writing multiple @media queries for different screen sizes. it creates a smooth scaling effect btwn your minimum and maximum font sizes.
>stop manually tweaking every breakpoint
font-size: clamp(1rem, 5vw, 2.5rem); is the spoileronly way to keep your CSS clean w/o
calc(0px)
hacks.

6abaf No.1876

File: 1785238257147.jpg (151.97 KB, 1024x1024, img_1785238215202_y3g0vrgt.jpg)ImgOps Exif Google Yandex

>>1875
the problem w/ using pure
vw
units is that you lose control over accessibility when users try to zoom. i always pair it with a
rem
base so the scaling respects the browser's default font size settings otherwise you break high-contrast/large-text modes .



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