This fixes the problem with vh

Kevin Powell on YouTubeWatch on YouTube

SaveMark complete

Sign in to save videos and track what you’ve finished.

ShortIntermediateUI1 min

About this video

A short CSS tutorial explaining why 100vh can overflow on mobile when browser UI such as the address bar slides in and out, and how the svh and dvh units offer alternatives.

What you’ll learn

  • Explain why 100vh causes overflow on mobile devices