Sticky Headers and Floating Buttons: Help or Hindrance?
Keeping navigation or a main button always on screen can make it easier to act. But fixed elements take up space, can cover content, and cause accessibility issues. Whether they help depends on how they are built.
Sticky headers
A sticky header stays visible as the user scrolls.
Benefits:
- Navigation is always available
- A call to action stays reachable on long pages. See how to design a website header
Drawbacks:
- It reduces the visible area, especially on phones and in landscape orientation
- It can cover content, anchors, and focused elements
- It can feel intrusive if it is large
Making it better
- Keep it slim. Shrink the header when scrolling, or hide it on scroll down and show it on scroll up.
- Account for it in anchor links. Add
scroll-marginorscroll-paddingso headings are not hidden under the header. - Protect keyboard focus. WCAG 2.2 includes Focus Not Obscured (Minimum), 2.4.11, which says a focused element should not be completely hidden by fixed content. See accessible focus styles and WCAG 2.2: what changed.
- Test zoom and reflow. At high zoom, a fixed header can fill most of the screen. See text spacing and zoom for low vision users.
- Avoid layout shifts when the header changes size. See how to fix Cumulative Layout Shift.
Floating action buttons
These are buttons that stay on screen, such as "Call now", "Book", or a chat bubble.
Benefits:
- Always available on mobile, where reaching the top is awkward
- Can raise calls and bookings for businesses where a phone call is the goal. See click to call and phone conversions
Drawbacks:
- Can cover content, forms, and cookie banners
- Can look pushy or become noise
- Chat widgets add scripts and may slow the page. See live chat and chatbots for small business sites
Doing it well
- Use one floating action at most, matching your main goal
- Keep it small, with a clear label and a good contrast ratio
- Make sure it is a real button or link with an accessible name. See accessible buttons vs links
- Do not cover important content or the checkout. Hide it on pages where it is not relevant
- Make the target large enough but not huge. See touch target sizes for mobile
- Keep it clear of cookie banners and system gestures near the screen edge
Sticky bars at the bottom
A bottom bar on mobile can hold a price and buy button on product pages. It can work well if it is not too tall.
Test the effect
Compare conversion and bounce rates with and without the element. Watch recordings or use heatmaps to see if it blocks things. See website heatmaps and what they tell you and A/B testing for small websites.
Respect user choice
Provide a way to dismiss non-essential floating widgets. Avoid animations that draw constant attention. See accessible 3D, parallax, and motion effects.
Common mistakes
- Tall fixed headers on phones
- Floating elements hiding form fields
- Several floating widgets competing
- Forgetting keyboard users
To judge whether any of this works, you need to measure more than final sales. Read micro-conversions: what to track.