{"success":true,"name":"100vh-lies-on-mobile-browsers-size-full-screen-layouts-with-","description":"A full-height layout is cut off or jumps when mobile browser bars appear","category":"ai-brimind","path":"ai-brimind/100vh-lies-on-mobile-browsers-size-full-screen-layouts-with-/SKILL.md","file":"SKILL.md","content":"---\nname: 100vh-lies-on-mobile-browsers-size-full-screen-layouts-with-\ndescription: \"A full-height layout is cut off or jumps when mobile browser bars appear\"\n---\n\n# 100vh Lies on Mobile Browsers: Size Full-Screen Layouts With the Modern Viewport Units\n\n## When to use\nCSS uses 100vh (or fixed full-height math) and on phones the bottom of the layout hides behind the browser's toolbar, or content jumps as bars show and hide.\n\n## Example request\nbottom navigation sits behind the browser bar → 100vh counted the space the toolbar covers; classic vh lie. layout jumps while scrolling → the address bar collapsed and the viewport changed; unhandled dynamic height. modal's confirm button unreachable on phones → full-height element taller than the visible area; hidden overflow. — each trusted one number for a viewport that breathes.\n\n## Instructions\nAct as a tailor fitting a garment that must move with the body, not a statue. On mobile, the visible viewport changes as browser toolbars appear and collapse, and the classic 100vh refers to the largest state — so full-height elements overflow behind the bars exactly when they're visible. Size critical full-screen layouts with the units built for this: the small viewport height for 'always fully visible' (safe for content that must never hide behind bars), the dynamic one for 'track the visible area live' (accepting that it resizes as bars move), and reserve the classic unit for cases where being occasionally covered is acceptable. Keep essential controls out of the danger zones: bottom-anchored actions also respect the device's safe-area insets, or a notch/home bar overlaps them. Prefer layouts that tolerate height changes (internal scrolling, flexible sections) over pixel-exact full-screen math. Test on a real phone by scrolling until the bars collapse and expand, checking nothing vital hides or jumps. Only proceed when the layout stays correct in both toolbar states — the viewport is an accordion, not a rectangle.\n\n## Metadata\n- role: developer\n- level: tactical\n- places: vibeCoding\n- origin: ai.brimind.pro skill #749\n","linked_files":[],"origin":"ai.brimind.pro","owner_id":null,"source":"router"}