Sticky Header Design and How Much Space to Give It
Open a lot of small business sites on a phone and you find the same thing. A header pinned to the top, 92 pixels tall, holding a logo at twice the size it needs, a hamburger button, a phone number and a bright call to action.

Open a lot of small business sites on a phone and you find the same thing. A header pinned to the top, 92 pixels tall, holding a logo at twice the size it needs, a hamburger button, a phone number and a bright call to action. On a 667 pixel viewport that header has taken 14 percent of the screen and it never gives it back. The visitor scrolls through the entire article reading it through a letterbox.
I rebuilt one of these last spring for a dental practice and measured the result rather than guessing. Cutting the header from 92 to 56 pixels returned about two and a half extra lines of body text per screen. Nothing else changed on the page. Time on page went up, which I would not read too much into, but the complaint about the site feeling cramped stopped arriving.
Measure the header as a share of the screen
Pixel heights are the wrong unit to think in, because the same 80 pixel bar is trivial on a desktop monitor and oppressive on a small phone. The useful figure is how much of the shortest viewport you expect to support the header occupies.
My working ceiling is 10 percent. On a small phone that is roughly 64 pixels, and I aim lower, usually 52 to 56. On desktop, where a window might be 900 pixels tall, the same 10 percent allows 88, which is more than any header needs, so there the practical range is 64 to 72 and the limit never binds.
That budget has to cover everything. A 44 pixel tap target for the menu button, which is the minimum Apple publishes and close to the 48 density independent pixels Material recommends, already consumes most of a 56 pixel bar once you add 6 pixels of padding above and below. There is no room left for a second row, a tagline or a promotional strip. If your design has all three, it is not a sticky header, it is a second page.
One honest exception. Documentation and long reference pages genuinely benefit from a taller sticky bar carrying a search field, because the search is the primary navigation. Marketing pages almost never clear that bar.
The behaviour pattern I would stop copying
The fashionable answer to the space problem is to hide the header when the reader scrolls down and bring it back when they scroll up. It feels clever in a prototype. I have watched enough people use it on real phones to think it is the wrong default.
The problem is that the trigger is also the most common accidental gesture. Readers nudge the page up by a few pixels constantly while adjusting their grip, and each nudge flies a bar in over the text they were reading. Worse, it lands on exactly the line they were on, because the gesture that summons it is the gesture that moves the text down. On a short screen the effect is a bar that appears, vanishes and reappears while somebody tries to read three paragraphs.
It also makes anchor positioning unpredictable, since the offset you need depends on whether the header happens to be visible at that moment. You end up either reserving space for a bar that is not there or scrolling a heading under one that just arrived.
A short header that stays put is calmer and simpler to reason about. If you do use the hide and reveal pattern, set a scroll threshold of at least 120 pixels before the reveal fires, and respect the reduced motion preference so the bar does not slide for people who have asked the system to stop animating things.
Keeping a short header readable
Once the bar is down to 56 pixels, every typographic decision inside it gets tighter, and this is where most of my time actually goes.
Navigation labels want 15 or 16 pixels at a medium weight. Designers reach for 13 pixel uppercase to fit more items, and it reads worse at every size: uppercase removes the word shapes people recognise at a glance, and letter spacing has to grow to compensate, which eats the width you were trying to save. Four lowercase labels beat six cramped uppercase ones. The reasoning carries over to mobile patterns in mobile navigation design rules.
The logo should be sized by its cap height, not its bounding box. A wordmark with a cap height of 16 to 18 pixels sits comfortably beside 16 pixel nav labels. Scaling the whole asset until it looks important is how headers end up at 92 pixels.
Then there is the translucency trap. A frosted bar with a blurred backdrop looks lovely over a photograph and fails over mixed content, because the text contrast changes as the page scrolls underneath. If you want the effect, keep the background at 85 percent opacity or higher rather than 60, pick a solid fallback for browsers without backdrop blur, and test the contrast ratio against the lightest and darkest content on the page. Anything under 4.5 to 1 against either extreme is a bar that becomes unreadable somewhere on the page, and you will not catch it by scrolling the homepage once.
The anchor bug almost everyone ships
Click a table of contents link on a page with a sticky header and the target heading often lands behind the bar. It happens because the browser scrolls the heading to the top of the viewport, and the top of the viewport is covered.
The fix is two lines of CSS and takes a minute. Set a scroll margin on headings equal to the header height plus about 8 pixels of breathing room, or set scroll padding on the root element so every anchor in the document inherits the offset. Store the header height once as a CSS variable and reference it in both the header rule and the scroll offset, so the two can never drift apart when somebody adjusts the padding later.
Before shipping, walk through this list on an actual phone rather than a resized desktop window:
- Header occupies under 10 percent of the shortest viewport you support.
- Menu button hits 44 pixels square including padding, not just the icon.
- Every anchor link lands with the heading fully visible.
- Text contrast holds over the lightest and darkest content the bar will pass over.
- The bar does not move when a form field gains focus and the on screen keyboard opens.
- With the address bar expanded on a small phone, the first paragraph is still partly visible without scrolling, which is where the hero section advice about overfilling the top matters most.
Point five catches people out on iOS in particular, where the visual viewport shifts and a position fixed bar can float into the middle of the screen. More layout decisions of this kind sit under web design.
FAQ
How tall should a sticky header be on mobile?
Between 52 and 60 pixels for most sites. That fits a 44 pixel tap target with modest padding and stays under a tenth of a small phone screen.
Should the header shrink as the page scrolls?
Only if it starts tall for a reason, such as a two row layout on a homepage. A shrink animation on a bar that is already 56 pixels adds motion without returning space.
Does a sticky header hurt accessibility?
It can. Keyboard users tabbing through content may land on an element hidden behind the bar, which the same scroll margin offset fixes, and anyone zoomed to 200 percent loses a large share of the viewport to it.
Is a sticky footer bar a better option on phones?
Sometimes, for a single primary action such as calling or booking. It sits near the thumb and leaves the reading area intact, though it competes with browser chrome at the bottom of the screen.
More in Web Design
Web Design
Form Error Message Design That Helps People Fix It
I watched a friend try to book a vaccination appointment on a council website last winter.
Web Design
Link Styling on the Web and Why Underlines Still Win
A studio I helped out last spring had a beautiful article page and a support inbox full of the same question: where do I click...
Web Design
Web Font Loading and How to Stop Text Jumping on Mobile
You chose a lovely typeface, set the sizes carefully, and the page looks right on your laptop.