Why does a fixed bottom bar overlap content on an iPhone?

A fixed bottom bar overlaps content when the page does not reserve space for the bar or the iPhone safe-area inset. The bar sits outside normal document flow, so the final lines and controls can scroll underneath it. The home indicator can also cover actions placed at the physical screen edge.
Give the bar bottom padding that includes env(safe-area-inset-bottom), then add matching bottom padding to the main content based on the bar’s total height. Use a shared custom property when the height is stable; observe or redesign variable-height bars so content reservation stays accurate.
:root { –bar-height: 4rem; }
main {
padding-bottom: calc(var(–bar-height) + env(safe-area-inset-bottom));
}
.bottom-bar {
min-height: var(–bar-height);
padding-bottom: env(safe-area-inset-bottom);
}
Avoid a rigid height if labels can wrap or users enlarge text. Let the bar grow and keep its actions visible, or use sticky positioning when the layout permits the bar to remain in flow. Check that the on-screen keyboard does not leave the bar floating over the active form field.
Test the last focusable element, browser controls, landscape mode and installed web-app display. A global overflow rule may hide the symptom while making covered content unreachable. The correct fix reserves actual space and keeps the action inside the current safe area. Verify the final behavior across the full width range, including the spaces between preset devices and design breakpoints. Long labels, translated copy and enlarged text often reveal constraints that short demo content does not exercise. Recheck the component after font, spacing or browser-support changes. Responsive failures often return when a shared token changes, so the test should cover the limiting content state instead of one ideal screenshot.