A sticky header is a navigation bar that stays fixed at the top of the screen as the user scrolls.
A sticky header is a navigation bar that stays fixed at the top of the screen as the user scrolls down a page. Instead of scrolling away with the rest of the content, it remains pinned in view, keeping the site's logo, primary navigation links, and often a search field or call-to-action button constantly accessible. Whether a visitor is at the top of a long article or deep near the bottom, the sticky header follows along so that the main ways to move around the site are always one click or tap away.
A sticky header works by changing how the browser positions the header element relative to the scrolling page. In modern web development this is most often achieved with the CSS position sticky property, which lets an element scroll normally until it reaches a defined point, usually the top of the viewport, and then hold there while the rest of the page continues past it. Older implementations used fixed positioning combined with scripting to achieve a similar result. Designers frequently refine the behavior: a header might shrink or lose some padding after the user scrolls a short distance to reclaim screen space, or it might hide when scrolling down and reappear when scrolling up, so it stays available without dominating the view.
The name is descriptive. "Sticky" simply means the element stays in place rather than moving off screen, and "header" is the band of navigation and branding at the top of a page. The pattern became common once the CSS position sticky property gave developers a reliable, native way to achieve the effect without fragile scripts, and it grew especially valuable as long-scrolling pages and mobile browsing made a persistent, easy route back to navigation more important.
For a business, a sticky header matters because it keeps the paths to conversion and exploration continuously available. A visitor who becomes interested partway through a long page should not have to scroll all the way back to the top to reach the menu, the phone number, or a "buy now" button. Keeping those elements in view reduces friction, supports navigation on content-heavy sites, and can lift engagement and conversions by making the next action effortless. It also reinforces branding, since the logo stays present throughout the visit, and it improves the sense of orientation on lengthy pages.
The most common mistake is letting the sticky header consume too much vertical space, especially on small mobile screens where a tall fixed bar can crowd out the content people came to read. A related pitfall is causing content to be hidden beneath the header when a user jumps to an anchor link, which requires careful spacing to fix. Overloading the header with too many links or an oversized promotional banner defeats the purpose by making the persistent element feel heavy. A sticky header relates to adjacent navigation patterns: on wide screens it may reveal a mega menu of grouped links, on narrow screens it typically collapses its links into a hamburger menu, and its overall behavior should fit within a responsive design so it stays helpful rather than intrusive at every screen size.
A sticky header keeps navigation and calls to action within reach at all times, improving usability and helping conversions on long pages.