Loading...
.hero {
min-height: 100vh;
}.hero {
min-height: 100vh;
min-height: 100dvh;
}The '100vh' line stays as a fallback, and 100dvh follows the visible viewport where it is supported.
100vh is taller than the visible area when the mobile browser toolbar shows.width: 100vw adds a horizontal scrollbar on desktop.dvh or svh instead of 100vh.100vw, which includes the scrollbar and causes horizontal scroll.vw are mixed with rem inside clamp(), so text still grows with user zoom.svh uses the viewport with toolbars shown, lvh with toolbars hidden, and dvh changes between them as toolbars show and hide.
100vw includes the vertical scrollbar width, so an element with that width is wider than the page content area.
No. dvh resizes while scrolling, which can cause jumps; use svh for layouts that must stay stable.