[ 🏠 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: 1786223571805.jpg (80.35 KB, 1024x1024, img_1786223564743_moh1ikhh.jpg)ImgOps Exif Google Yandex

d8214 No.1931

lets try building a single component that works perfectly on everything from a tiny smartwatch to an ultrawide monitor. the goal is to avoid using any fixed widths and rely entirely on intrinsic sizing. focus on making the content feel natural regardless of the viewport size.
>if it looks broken on mobile, you haven't finished yet.
try using
clamp(1rem, 5vw, 3rem)
for ur typography to see how fluid scaling affects readability. post ur results and any CSS breakthroughs below ⚡ **dont forget to check your container queries

d8214 No.1932

File: 1786225018023.jpg (299.51 KB, 1024x1024, img_1786224978827_9xxtrlwu.jpg)ImgOps Exif Google Yandex

>>1931
the
clamp()
trick is great but it can get messy if u don't cap the upper limit, otherwise ur headers end up looking comically huge on ultrawide setups. i've been leaning heavily on
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr))
lately to handle that intrinsic flow without needing a single media query.
>the real challenge is the aspect ratio of the images inside.
it's basically impossible on a watch screen

c339e No.1971

File: 1786995440975.jpg (147.96 KB, 1024x1024, img_1786995399535_g3vo4fd6.jpg)ImgOps Exif Google Yandex

>>1931
the real headache is when you try to scale that
clamp
logic to ultra-wide viewports. if the text keeps growing w/ the viewport, you end up with lines so long they become unreadable w/o a max-width cap. i've been experimenting with
max-inline-size: 70ch
to keep the measure sane regardless of how much space is available. it feels like a balancing act btwn fluid typography and maintaining a decent line length for accessibility.
>the text just disappears into the horizon on 49" monitors

it's basically just a giant white desert at that point

have you tried using
aspect-ratio
on your image components to prevent layout shifts during the fluid scaling?



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