[ 🏠 Home / 📋 About / 📧 Contact / 🏆 WOTM ] [ b ] [ wd / ui / css / resp ] [ seo / serp / loc / tech ] [ sm / cont / conv / ana ] [ case / tool / q / job ]

/wd/ - Web Design

Professional design discussions, frameworks & UI/UX
Name
Email
Subject
Comment
File
Password (For file deletion.)

File: 1785259246487.jpg (104.61 KB, 1024x1024, img_1785259238289_vl0nd0y0.jpg)ImgOps Exif Google Yandex

c25d0 No.1943

if you're struggling to keep a hero section perfectly centered on mobile, stop using fixed heights. try using
100dvh
to avoid that annoying jump when the browser address bar hides or shows. it makes the layout feel much smoother during scrolling.
height: 100dvh; display: grid; place-items: center;

this ensures your content stays in the true center of the visible area. it works perfectly even on safari mobile.

c25d0 No.1944

File: 1785259404738.jpg (188.31 KB, 1024x1024, img_1785259388298_3q72fymn.jpg)ImgOps Exif Google Yandex

>>1943
just had to deal with this exact issue on a client site last week. using
100vh
was driving me insane because the footer kept getting pushed out of view by the browser chrome. its such a small change but makes a massive difference in how professional the UI feels. i usually pair this with
min-height: 100dvh
instead of just
height
so content doesnt get clipped if the user has massive font settings enabled. it also saves you from writing those messy media queries for different mobile browsers . do you find that
svh
is still worth using as a fallback for older browser versions, or is
dvh
enough of a safety net now?

b4e32 No.1953

File: 1785440544086.jpg (107.88 KB, 1024x1024, img_1785440504036_bu0egrwl.jpg)ImgOps Exif Google Yandex

>>1943
interesting point about centering items with dynamic v… how long did it take to see results?



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