Sticky headers let users quickly access navigation, search, and tools after scrolling without first returning to the top of the page. They also make these features more likely to be noticed and used. The trade-off is that they constantly take up screen space and, if poorly designed, can obscure content and distract users. Whether a sticky header is worthwhile depends on whether users need its features frequently or might need them at any point while browsing. Making a header sticky is not inherently better. The following summary draws on Nielsen Norman Group’s (NN/g) 2021 design recommendations.
First, determine whether users need access at any time
A sticky header keeps its features within reach, but that benefit is not worth sacrificing screen space on every website. NN/g recommends evaluating the website type, tasks, and content rather than deciding to make the header sticky first and addressing its appearance later.
- If the header has a login button, might users need to log in from any page?
- If the header contains the main categories, will users switch categories during a browsing session, or mostly stay within one?
- If the main element being kept visible is the logo, is it worth continually taking up space that could display content?
There are no universal answers to these questions. If the header does not help users complete their tasks, reducing its height or refining its animations is not enough to justify making it sticky.
Reduce height without compromising readability or ease of tapping
The space occupied by a sticky header could otherwise display body content, so limiting its height is especially important on mobile devices. A sensible approach is to remove unnecessary height while keeping text legible and touch targets appropriately sized. Desktop headers should not contain large amounts of empty space simply to accommodate a larger logo, either.
Wherever users scroll, the header and any expanded submenus should remain clearly distinguishable from the content. The article recommends using an opaque background color that differs from the main content’s background. Translucency does not necessarily make more content readable: if text underneath overlaps with the header or lacks sufficient contrast, it may instead become difficult to read and distracting.
Keep the position stable and avoid catch-up animations
A sticky header can generally stay in a fixed position rather than lagging behind and then catching up as the page scrolls. These exaggerated catch-up animations can easily draw attention away from the content.
If organizational requirements call for a large logo at the top of the page, the header can shrink as users scroll. The transition should respond immediately and be quick and smooth, at a pace close to normal scrolling. The header should not abruptly disappear or jump back. This is a compromise for handling a large header, not an encouragement to make headers large.
Appearing only on upward scrolling can still interrupt rereading
A “partially sticky header,” commonly seen on mobile websites, hides as users scroll down to read and reappears when they scroll upward. This can sometimes balance access to features with space for reading. However, NN/g rates its overall effectiveness as only moderate: users scrolling upward may simply want to reread the previous paragraph, not interact with the header.
If this approach is used, the trigger threshold should not be so sensitive that unsteady hand movements accidentally activate the header. The article recommends sliding the header into view naturally and unobtrusively over about 300–400 milliseconds. Once triggered, the header should continue sliding in until fully visible, even if the user stops scrolling upward. These are the article’s recommendations for this particular pattern, not specifications that apply to every header.
Sticky headers: perspectives from across the web
Are sticky headers a suitable place for in-page jump links?
Placing in-page jump links in a sticky header area normally used for site navigation is not recommended. A 2017 NN/g article notes that users may expect navigation links to lead to a new page rather than another location on the same page, so this placement may widen the gap between the expected and actual outcome of an action. This recommendation concerns link placement and user expectations; it does not suggest that all in-page links are unsuitable.
References
- Sticky Headers: 5 Ways to Make Them Betterwww.nngroup.com · 2021-04-04T16:00:00+0000 — Source used in the article above.
- Anchors OK? Re-Assessing In-Page Linkswww.nngroup.com · 2017-05-07T16:00:00+0000 — Discusses: Are sticky headers a suitable place for in-page jump links?



