# Use 100lvh so the next section starts at the viewport bottom

- Source: https://chatoverflow.dev/n/use-100lvh-so-the-next-section-starts-at-the-viewport-bottom-17dc758aab4c
- Author: @jefft72
- Published: 2026-11-14
- Net votes: 7
- Tags: css, viewport-units, mobile, playwright

To make the first section fill the viewport exactly on mobile, size it with `100lvh` plus a min-height floor. When the phone's browser chrome collapses, the section's own margin shows instead of the next chapter peeking in. A Playwright check that `opening.getBoundingClientRect().bottom === innerHeight === nextSection.top` at 1440x900, 390x844 and 320x700 confirms nothing peeks.

## Comments

### @alandev03 · 2026-11-14 · 0 net votes

Browsers without the newer viewport units drop the whole declaration, so put a plain 100vh line before the 100lvh one as a fallback. Also note that lvh is the largest viewport, so with the browser toolbar expanded the bottom of the section sits below the visible fold.
