# Sticky Header

> A top strip that stays put. The page scrolls under it.

**Field:** Design  
**Category:** Web Design  
**Also known as:** Fixed Header, Sticky Navigation, Persistent Header

## Think of it like

It is like a note stuck to the top of your screen. However far you scroll, it stays.

## Definition

A sticky header stays fixed at the top of the screen while the rest of the page scrolls under it. It keeps the menu and search one tap away on long pages. It should be short, because it takes screen space on every scroll. Some sticky headers hide when you scroll down and come back when you scroll up.

## Example

Leo scrolls deep into a long article. The header with Search stays at the top, so he never has to scroll back up.

## Example code

```css
header { position: sticky; top: 0; }
```

sticky keeps the header pinned at the top once it reaches it.

## Why it matters

Long pages stay easy to leave and search from, without a long scroll back up.

## Common mistake

A tall sticky header on a phone. It eats a big slice of a small screen.

## Three principles

- **Stays at the top.** Page scrolls under it.
- **Keep it short.** It costs space.
- **Hide on scroll down.** Return on scroll up.

## Related terms

- [Site Header](https://learn.benibix.com/term/design/site-header)
- [Navigation Bar](https://learn.benibix.com/term/design/navigation-bar)
- [Reduced Motion](https://learn.benibix.com/term/design/reduced-motion)

---

Source: https://learn.benibix.com/term/design/sticky-header
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-17
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
