Viewport units in CSS are great, if you want to style an element to take up the full screen height – just set height: 100vh. Sadly, the 100vh unite breaks your design on mobile browsers that makes it nearly useless.
When in a mobile browser (Chrome + Safari) the address bar is visible, the bottom of the screen gets cut off since mobile browsers incorrectly set 100vh to be the height of the screen without the address bar showing.
A Better Solution: use height 100% instead of 100vh. In this sample project you will learn how to set this up!
Tags from Webflow:
mobile friendly, fullscreen, modal, 100vh, css, navigation, viewport, full-height, fullheight, fullscreen menu
The best Webflow projects handpicked & delivered.
We search the entire Webflow showcase to find the most clone-worthy websites. The kind of sites that make you say "wait... this is free?"
Unsubscribe anytime. No spam.
Booyah! The first newsletter will go out early next week.
Oops! Something went wrong while submitting the form.
0 Comments