Quick Win

Make elements respect dynamic viewport height

Avoid mobile viewport bugs caused by browser UI chrome.

Est. 1 min readBeginner

Published

Avoid mobile viewport bugs caused by browser UI chrome.

.hero {
  min-height: 100dvh;
}

Prevents content from getting cut off or jumping when mobile address bars expand/collapse.

layout · beginner