New Viewport Units - Ahmad Shadeed We have been using CSS viewport units since 2012. They are useful to help us in sizing elements based on the viewport width or height. But using the unit on mobile is buggy. The reason is that viewport size won’t include the browser’s address bar UI.
Table of contents
CSS viewport unitsThe problemThe small, large, and dynamic viewport unitsUse cases and examplesIs it possible to make dvh the default unit?Be careful with the dvh viewport unitOther places where the new viewport units are usefulFurther resources28 Comments
Sort: