Ahmad Shadeed 7/8/2023

New Viewport Units

Read Original

This article details the problem with traditional CSS viewport units (vh) on mobile browsers, where 100vh doesn't account for dynamic UI like address bars. It introduces and explains the new small (svh), large (lvh), and dynamic (dvh) viewport units designed to provide more reliable and predictable sizing for full-height elements on mobile devices.

New Viewport Units

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week