Explore Bato Web Agency Webflow Certified Partner Profile Explore Bato Web Agency Webflow Certified Partner Profile

What is the difference between vh, svh, lvh and dvh units?

Illustration without a description Illustration without a description

The units vh, svh, lvh and dvh all measure one percent of a viewport height, but they use different viewport states. The newer units make mobile browser controls more predictable.

 

svh uses the small viewport height, normally the space available while dynamic browser controls are expanded. It is a safe choice when important content must fit without being hidden. The value remains stable as controls retract, so it can leave extra space afterward.

 

lvh uses the large viewport height with retractable controls minimized. It can fill the largest possible area, but content may sit behind browser UI when that UI is visible. dvh tracks the dynamic viewport as controls appear and disappear.

 

The legacy vh maps to a browser-defined viewport behavior and on modern specifications commonly aligns with the large viewport unit. Existing sites may therefore see the same mobile overlap that prompted the new units. Support should still be checked against the project’s browser policy.

 

Use svh for stable fit, dvh for interfaces that should follow visible height and lvh only when the largest state is intentional. Prefer min-height for content sections, and test keyboard, orientation and safe areas before shipping. Keep the rule beside the component it controls and document the reason for the threshold or constraint. This makes future changes easier to evaluate and prevents an unrelated page stylesheet from silently overriding the responsive behavior. Test the solution with keyboard focus, touch input and a resized desktop window. Responsive geometry is only successful when every visible control remains reachable and the content keeps a logical reading order.