Avoid 100vh on mobile web

David Chanin / filed under HTML & CSS

Viewport units in CSS sound great. If you want to style an element to take up the full screen height, you can just set height: 100vh and voila – you have a perfect fullscreen element, which resizes as the viewport changes! Sadly, this is not the case. 100vh is broken in a subtle but fundamental […]

Subscribe to newsletter

Best design and frontend links delivered to your inbox every day and week. No spam, unsubscribe at anytime.

Choose frequency

Permission
Privacy Policy