On long pages where users need quick access to navigation after scrolling, consider a sticky or partially sticky header. The key questions are whether the header’s functions need to remain visible and whether the convenience justifies taking space away from content. Sticky headers suit situations that require ongoing access to navigation. Partially sticky headers free up space as users scroll down to read and reappear when they scroll up, but they may interrupt people who simply want to reread earlier content. If the header’s functions are rarely needed, neither approach may be worthwhile.
Sticky headers: first confirm that keeping them visible serves a practical purpose
A sticky header stays in the same position on the screen as the page scrolls. NN/g’s 2024 article recommends considering sticky or partially sticky menus for long pages so users do not have to scroll all the way back to the top to find navigation. It also highlights the need to consider small screens. However, a long page does not automatically mean the entire header should be sticky.
Before adopting this approach, consider what users need to do on the site and the content it provides:
- Does the header contain interactive functions such as navigation and search, or is it mainly a logo?
- Do users switch between categories during a single visit, or mostly stay within one category?
- Might users need functions such as signing in on any page, making it worthwhile to keep those functions continuously accessible?
There is no universal answer to these questions. A sticky header makes more sense when users genuinely need frequent access to its functions. Making those functions easier to find does not, on its own, justify sacrificing content space.
Partially sticky headers: more reading space, but a risk of misreading intent
Partially sticky headers are common on mobile websites: they hide when users scroll down and reappear when users scroll up. They can sometimes provide easy access to navigation without interrupting reading. However, NN/g’s 2021 article rated their overall effectiveness as only moderate and did not find them universally superior to sticky headers.
The limitation is that scrolling up does not necessarily mean users want to access navigation. For example, a reader may simply be checking the previous paragraph, and a header sliding into view can still be distracting. If you use this approach, avoid overly sensitive thresholds that cause the header to appear or disappear repeatedly in response to slight hand movements.
The article recommends having the header slide into view after users scroll up a few pixels, with the animation lasting approximately 300–400 milliseconds so the movement feels natural. Once triggered, it should continue sliding in until fully visible, even if the user stops scrolling. These are the article’s design recommendations, not specifications that every interface must follow.
Both approaches need limits on height and motion
A sticky header occupies space that could otherwise display content, so limiting its height is especially important on small screens. Keep it as short as possible while ensuring text remains clearly readable and touch targets are appropriately sized. On desktop, too, avoid adding whitespace simply to accommodate a larger logo.
Use animation sparingly as well. A standard sticky header can usually stay in place without additional motion effects. Animation may be needed when a large header shrinks or when a partially sticky header appears and disappears. The header should also be visually distinct from the content and should avoid obscuring it. If the disruption from taking up space or repeatedly sliding into view outweighs the convenience of navigation, reconsider whether to use it rather than merely adjusting its appearance.
Header design: perspectives from across the web
How small can touch targets and text be when shrinking a sticky header?
In 2021, NN/g recommended tap targets of at least 1 × 1 cm on touch devices and text at around 16 pt. The appropriate minimum font size will still vary slightly depending on the typeface’s letter height and legibility. These are design recommendations, not current platform rules. Once you have confirmed that text is readable and targets are easy to tap, reduce unnecessary header height as much as possible without sacrificing usability to save space.
References
- Menu-Design Checklist: 17 UX Guidelineswww.nngroup.com · 2024-06-07T17:00:00+0000 — Source used in the article above.
- Sticky Headers: 5 Ways to Make Them Betterwww.nngroup.com · 2021-04-04T16:00:00+0000 — Discusses: How small can touch targets and text be when shrinking a sticky header?



