---
topic: sticky-header
title: How to design a sticky page header in 2026, and whether to stick it at all
description: The behaviours of a sticky header in 2026 (fixed, hidden on scroll down, shrinking, translucent with blur, the button alone), what usability research says, what WCAG 2.2 requires, and how far CSS scroll-state(scrolled) is supported; as of 1 December 2026.
aliases: [sticky header, header, menu, navigation, hide on scroll, partially persistent header, hidey bar, shrinking header, backdrop blur, glass, scroll-state, scrolled, container query, scroll-padding-top, WCAG 2.4.11, focus not obscured, NN/g, content-to-chrome, sticky CTA]
domain: design
created: 2026-12-01
license: CC BY 4.0, Jakub Dudek
address: https://stacks.jakubdudek.com/sticky-header
---

## Conclusions

The pattern most often described in 2026 is a header that hides on scroll down and shows on a move up; Troiana writes that most large publishers do this [c12]. NN/g judges it more cautiously: it is seen mostly on phones and works moderately well, because a move up is sometimes only a return to a paragraph [c4, c5]. If it is used, the header should come back after a few pixels of upward movement, sliding in over about 300 to 400 ms [c6].

Usability research (NN/g 2021, still cited in 2026) says to keep the bar as small as possible, opaque and in a colour different from the content background, and preferably not to animate it [c1, c2, c3]. Agency blogs of 2026 recommend glass with blur and shrinking on scroll; that contradicts NN/g, so we treat it as fashion, not as evidence.

On a page that mainly informs and navigates little, a sticky menu gives little [c14]. On product pages it is better to stick the main button alone than the whole header [c13].

Accessibility: WCAG 2.2 (2.4.11, AA) forbids hiding a focused element entirely, and W3C names sticky headers as a typical cause [c7, c8]. The fix: `scroll-padding-top` of at least the header's height [c9].

Technique: `scroll-state(scrolled)` detects the scroll direction in CSS alone [c10], but on 30 November 2026 it works only in Chrome and Edge 144+, for about 70% of users, so only as an enhancement over a safe default behaviour [c11]. The figure of “22% faster navigation” attributed to NN/g is not in the NN/g article or in Smashing; do not cite it.

## Claims

### c1. NN/g (2021): a sticky header takes screen space from content, so keep it as small as possible
- source: https://www.nngroup.com/articles/sticky-headers/ · T2
- quote: Sticky headers inherently take up space on the screen that could be used for content, so it’s important that you use that space responsibly.
- checked: 2026-12-01
- valid until: 2027-05-30

### c2. NN/g (2021): the sticky header should be opaque and differ from the content background; translucent headers hurt contrast
- source: https://www.nngroup.com/articles/sticky-headers/ · T2
- quote: the sticky header must be an opaque color, different from the background of main content areas
- checked: 2026-12-01
- valid until: 2027-05-30

### c3. NN/g (2021): best not to animate a sticky header at all
- source: https://www.nngroup.com/articles/sticky-headers/ · T2
- quote: In general, it’s best to not use animation at all and simply keep the header in place as the user scrolls.
- checked: 2026-12-01
- valid until: 2027-05-30

### c4. NN/g (2021): the hide-on-scroll-down, show-on-scroll-up header is seen mostly on mobile sites
- source: https://www.nngroup.com/articles/sticky-headers/ · T2
- quote: Partially persistent headers are most frequently seen on mobile sites
- checked: 2026-12-01
- valid until: 2027-05-30

### c5. NN/g (2021): that pattern works only moderately well, because a scroll up may just be rereading
- source: https://www.nngroup.com/articles/sticky-headers/ · T2
- quote: This style works moderately well.
- checked: 2026-12-01
- valid until: 2027-05-30

### c6. NN/g (2021): if used, reveal after a few pixels of upward scroll with a slide-in of about 300 to 400 ms
- source: https://www.nngroup.com/articles/sticky-headers/ · T2
- quote: A slide-in animation that is roughly [300–400ms long](https://www.nngroup.com/articles/animation-duration/) will preserve that natural feel
- checked: 2026-12-01
- valid until: 2027-05-30

### c7. WCAG 2.2 SC 2.4.11 (AA): a focused component must not be entirely hidden by author content
- source: https://www.w3.org/WAI/WCAG22/Understanding/focus-not-obscured-minimum.html · T1
- quote: When a user interface component receives keyboard focus, the component is not entirely hidden due to author-created content.
- checked: 2026-12-01
- valid until: 2027-05-30

### c8. W3C names sticky headers as typical content that hides focused items
- source: https://www.w3.org/WAI/WCAG22/Understanding/focus-not-obscured-minimum.html · T1
- quote: Typical types of content that can overlap focused items are sticky footers, sticky headers, and non-modal dialogs.
- checked: 2026-12-01
- valid until: 2027-05-30

### c9. Chrome guide: set scroll-padding-top at least equal to the sticky header height so focused controls stay visible
- source: https://developer.chrome.com/docs/modern-web-guidance/guides/ui-atoms/state-aware-sticky-headers · T1
- quote: Add `scroll-padding-top` to the scrollport and set the value to be equal or greater than the sticky element's height.
- checked: 2026-12-01
- valid until: 2027-05-30

### c10. CSS scroll-state(scrolled) can detect scroll direction without JavaScript
- source: https://developer.mozilla.org/en-US/docs/Web/CSS/Guides/Conditional_rules/Container_scroll-state_queries · T1
- quote: `scrolled`: Queries whether a container was most recently scrolled in the given direction.
- checked: 2026-12-01
- valid until: 2027-03-01

### c11. As of 30 Nov 2026 scroll-state(scrolled) is not Baseline; about 70% of users have it (Chrome and Edge 144+)
- source: https://modern-css.com/auto-hiding-header-without-scroll-listeners/ · T4
- quote: Usage70%of people can use this30% use a browser without it.
- checked: 2026-12-01
- valid until: 2027-03-01

### c12. Troiana (Sep 2026): hide on scroll down and show on scroll up is what most large publishers now do
- source: https://troiana.net/insights/should-you-use-a-sticky-header/ · T4
- quote: This is the best general-purpose behaviour for content sites and it is what most large publishers now do.
- checked: 2026-12-01
- valid until: 2027-05-30

### c13. Troiana (Sep 2026): on product pages, let the header scroll away and keep only the main call to action fixed
- source: https://troiana.net/insights/should-you-use-a-sticky-header/ · T4
- quote: On product, pricing and booking pages, let the header scroll away and keep only the primary
- checked: 2026-12-01
- valid until: 2027-05-30

### c14. Smashing (2023): on pages that mainly convey information with little navigation, sticky menus help little
- source: https://www.smashingmagazine.com/2023/05/sticky-menus-ux-guidelines/ · T3
- quote: If it’s designed to primarily convey information and we don’t expect a lot of navigation, then sticky menus aren’t very helpful.
- checked: 2026-12-01
- valid until: 2027-05-30

## History
