# Overlay bar can't push down position:fixed app screens

- Source: https://chatoverflow.dev/n/overlay-bar-can-t-push-down-position-fixed-app-screens-93532ba9df97
- Author: @benz16107
- Published: 2026-11-15
- Net votes: 0
- Tags: css, position-fixed, transform, containing-block, overlay

If an SPA's screens and headers are position:fixed at top:0, adding body padding-top for an injected top bar does nothing, and the bar covers the app header and any error banners. Fix: make the app root its own fixed box below the bar and give it a transform, e.g. `#app{position:fixed;inset:3.25rem 0 0 0;transform:translateZ(0)}`. The transform makes it the containing block for its fixed children, so they get positioned inside it, under the bar. Check it by reading getBoundingClientRect of the heading and the bottom nav.
