Blue Feather Agency logo Blue Feather AgencyBrands built to be remembered
Web Design

Sticky Header Design That Helps Instead of Hiding Content

A plumber's website we audited last month had a sticky header 132 pixels tall. On a typical phone with the browser bar showing, that left about two thirds of the screen for the actual page.

A smartphone showing a small business website with a slim sticky header holding a logo, a call button and a menu icon above scrolling service listings

A plumber's website we audited last month had a sticky header 132 pixels tall. On a typical phone with the browser bar showing, that left about two thirds of the screen for the actual page. Scroll down to the list of services and the header followed, carrying a logo, a tagline, a phone number, a menu button and a promo banner about winter boiler checks. Customers were not reading less because the copy was weak. They were reading through a letterbox.

Sticky headers are useful when they stay small and carry the one or two things a visitor needs at any point on the page. They hurt when they become a second hero section that never leaves. Below is how I decide whether a small business site needs one, how tall it should be, and what belongs in it, with a few lessons from years of designing game HUDs that apply almost directly.

What a HUD taught me about persistent UI

In games, the heads-up display is the part of the screen that never goes away: health, ammo, a minimap. Every pixel of it competes with the game world, so HUD designers argue for weeks over whether a single icon earns its place. The working rule on both studios I drew for was simple. If the player does not need it in the next ten seconds, it does not stay on screen.

A sticky header is a website's HUD. It sits over the content the whole time someone scrolls, so it should pass the same test. For a local service business, the things a visitor might need at any moment are usually a way to call, a way to book, and a way back to the menu. A tagline does not pass. A logo at full size does not pass. A promo banner almost never passes after the first screen.

Games also fade parts of the HUD when they are not needed, then bring them back on demand. Websites can do the same with a header that hides while you scroll down and returns when you scroll up a little. That pattern is now common on news sites for good reason.

Sizes and contents that work

On phones, the space is tighter than most designers check on their large monitors. These are the targets I give clients, based on testing with real customers on the devices they actually use:

ElementMobileDesktopNotes
Header height once scrolling48 to 60 px60 to 80 pxShrink from the full header after the first screen
Share of screen heightUnder 10 percentUnder 8 percentMeasure with the browser bar visible
LogoCompact mark or short wordmark, 28 to 32 px tallWordmark, 36 to 44 px tallFull logo can live in the top state only
Primary actionOne tap-to-call or Book buttonOne button plus visible menu linksTap target at least 44 x 44 px
Promo bars and taglinesRemove when stickyRemove when stickyKeep in the page body instead

The tap-to-call button deserves special mention. On a trades site it is often the single most valuable element on the page, and it should never hide inside a menu. We covered why in the piece on keeping the phone number outside the mobile menu. A slim sticky header is the natural home for that button.

Text size inside the header follows the same rules as the rest of the site. A 13 pixel menu label that looks tidy on a 27 inch monitor is hard to tap and harder to read on a phone. The ranges in website font size that reads well on every screen apply here too.

Against "make the whole header sticky"

Many site builders, Squarespace, Wix and most WordPress themes included, offer a single toggle that makes the entire header sticky. The usual advice is to turn it on so visitors can always reach the navigation. I disagree with doing that unchanged.

The toggle keeps everything: the full logo, the top bar with opening hours, the social icons, sometimes a search field. That is the 132 pixel header from the plumber's site. A sticky header should be a different, smaller object from the one at the top of the page. Most builders let you set a separate scrolled state with a smaller logo and fewer items, though it is often a few menus deep. If yours does not, a hide on scroll down, show on scroll up behavior is a better default than a giant fixed bar.

There is also a case for no sticky header at all. A one-page site with short sections, or a landing page where the button repeats every screen or so, rarely benefits. If you can reach the top of the page with a single flick, the header does not need to follow you.

Details that are easy to miss

Anchor links break with sticky headers more often than people notice. Click a link to a section and the heading lands hidden under the header. The fix is a scroll offset in CSS, usually the scroll-margin-top property set to the header height plus a little breathing room. Test every in-page link after you change header height.

Watch the shadow and background. A transparent header over a hero image can look stylish, but once it sticks over white body text it becomes unreadable. Switch to a solid background with a soft shadow, around 4 to 8 pixels of blur, as soon as the header starts to follow the scroll.

Then check performance. Some themes animate the header with heavy scripts that run on every scroll event, which makes cheap phones stutter. If scrolling feels janky on an older Android device, the header is the first place to look.

Cookie banners and chat widgets make all of this worse. A sticky header at the top, a consent bar at the bottom and a chat bubble in the corner can leave a phone visitor with half a screen of content. Treat them as one budget. If the header is already doing its job, dismiss the cookie bar after one choice and keep the chat bubble small.

For this week, open your site on a phone, scroll halfway down your most visited page, and take a screenshot. Measure the header against the screen height. If it is over 10 percent, or holds anything besides the logo, the main action and the menu, trim it until it does not.

FAQ

Should a small business website have a sticky header?

Usually yes on longer pages, if it stays slim and holds the main action such as call or book. Short one-page sites often do not need one.

How tall should a sticky header be on mobile?

Aim for about 48 to 60 pixels once scrolling, or under 10 percent of the visible screen height.

Do sticky headers hurt SEO?

Not directly. Problems come from layout shift, slow scripts or headers that cover content, which can affect user experience signals.

The page scrolls the heading to the very top, beneath the fixed header. Add a scroll-margin-top value equal to the header height.

CR
Callum Reyes

Callum drew menus and HUDs for two small indie studios before joining the agency. He writes about game interfaces and what they teach designers working far from games.

More posts by Callum

More in Web Design

01doorganico 084goad 3hot8 4465456 after5internprogram ahandfulofblessings ahmadpc ahomcybersecurity allodialresources annodex antiquesandperiodcollectibles aotc asianworldkashmir beedlectrics bloggertemplatefree bodyweightsolution campaign08blog carfixadvisor catstreetcollective cbstvsports cnfanspurchasing committeeof500yearsofdignityandresistance covertopsdjs cs-kaiyuangame cuestacomunicaciontotal cxoutlet dancebetgame deskgearhub destinyvillastay detectmagazine di33 diamondsteelbuildings donmo dyanadropship emarsysfinance emimattl escapechan eskitarih evautoplay everythingweddings-orlando farmzone feedviewerapp foxstudiosscratch gamevui123 gleasongrade greetingsday hacklabasu haskell iw-kaiyun jagoanproperti jilidskripsi joltbusinessfinance juegodepokergratis juegospucca kaeru-festival latestmehndidesigns lestanzediottaviano litemagazines localcommunityhero lustrsazan mariashebets menswheels newwebstechs1 nikkit ootheday oxigenvpn plurfitness prefetial probudgetcarpetcleaning psychicmrsmartin pyaten qvantor rejoignezlogis rexzbot riselayouts ruchin rwxqsgd5 sakaltime shibiaowang shop-bot skrtips strcoding tetapatrium topselller uneplanteartificielle vipertechcr webtech1223411 wo-kygaming yamaha-mekar yeknava yoybuysheets zenunwa yamaha-mekar jilidskripsi ankertoto ankertoto ankertoto ankertoto