Skip to main content Scroll Top

Sticky Headers, Floating Buttons and Other Elements That Follow You

Some parts of a website stay put while everything else scrolls: a header pinned to the top, a chat bubble in the corner, a call button fixed to the bottom of a phone screen. These persistent elements can make important actions always available. They can also eat up valuable screen space and get in the way. The difference lies in what you choose to keep on screen and how much room it takes.

Sticky headers

A sticky header keeps the logo and navigation visible at the top as visitors scroll. On long pages, it saves people from scrolling back up to find the menu, and it keeps the business name in view.

The cost is height. On a phone, a tall sticky header can take a large share of the screen, leaving little room for content. A few approaches reduce that:

Advertisement
  • Shrink the header after the visitor starts scrolling.
  • Hide it when scrolling down and bring it back when scrolling up.
  • Keep it slim, with only the logo, menu button and one key action.

Floating action buttons

A floating button stays in a corner or along the bottom edge. For a service business, a persistent Call or Book button can be genuinely useful on mobile, because it removes the need to hunt for contact details. For an online shop, a persistent cart link serves a similar purpose.

Use them sparingly. One persistent button is helpful. Three or four, plus a chat widget and a cookie notice, can cover a meaningful portion of the screen and obscure the content people came to read.

Back-to-top links

On very long pages, a small back-to-top button can help, especially on mobile where scrolling back up takes many swipes. It is less necessary on short pages or when a sticky header already provides navigation. If you include one, make sure it does not overlap other floating elements.

Chat widgets and notices

Chat bubbles, cookie banners and promotional bars all compete for the same edges of the screen. Plan them together rather than adding them one at a time. Check that they do not cover form buttons, that they can be dismissed easily, and that dismissing them is remembered so they do not return on every page.

Accessibility considerations

Persistent elements can create problems for some visitors. When text is enlarged or the screen is zoomed, a fixed header can cover much of the visible area. Keyboard users may find that focused elements end up hidden behind a sticky bar. WCAG 2.2 addresses this directly: when an element receives keyboard focus, it should not be entirely hidden by content the author created, such as sticky headers or banners.

Advertisement

Test your site with the browser zoomed in and while moving through it with the Tab key to make sure nothing important disappears behind a fixed element.

A simple rule. Before making anything sticky, ask whether visitors need it constantly or only occasionally. Things needed constantly, like a way to contact you on a phone, earn a fixed spot. Everything else can stay in the normal flow of the page, where it does not compete for attention with every scroll.

A Worked Example: Planning the Edges of the Screen

Imagine a landscaping company whose mobile site has grown, one addition at a time, to include a tall sticky header with logo, menu and phone number; an announcement bar about spring booking; a chat bubble in the bottom right; a “Get a Quote” floating button in the bottom left; and a cookie notice along the bottom. On a typical phone, these elements together cover a large portion of the screen before the visitor reads a word.

The owner decides to plan the screen edges as one system:

  1. Slim the header to the logo, menu button and a small call icon, and let it hide as the visitor scrolls down.
  2. Move the spring booking announcement into the homepage content instead of a fixed bar.
  3. Keep one floating button, “Get a Quote,” at the bottom of the screen, and remove the duplicate call option since the header already provides it.
  4. Delay the chat bubble until the visitor has spent some time on the site, and position it where it does not overlap the quote button.
  5. Make sure the cookie notice can be dismissed with one tap and stays dismissed.

After the changes, visitors see far more content on every screen, and the two most important actions, calling and requesting a quote, remain easy to reach.

A Checklist for Persistent Elements

Before adding or keeping any element that stays on screen, run through these questions:

  • Do visitors need this constantly, or only occasionally?
  • How much of a phone screen does it cover?
  • Does it overlap any other fixed element, form button or content?
  • Can it be dismissed, and is that choice remembered?
  • Does it remain usable when text is enlarged or the page is zoomed?
  • Can keyboard users move past it without focused items disappearing behind it?
  • Does it still make sense on every page where it appears?

Mistakes to Avoid

  • Adding elements without removing any. Every new persistent feature should prompt a look at what is already there.
  • Testing only on a large phone. Elements that fit comfortably on a large screen may crowd a smaller one. Check on several sizes, or use your browser’s device preview.
  • Sticky elements in landscape mode. When a phone is turned sideways, vertical space shrinks dramatically. A header that seems fine in portrait can cover much of the screen in landscape.
  • Floating buttons over form fields. On contact and checkout pages, make sure no floating element covers the fields or the submit button.

Questions Readers Ask

Does a sticky header help or hurt conversions?

It depends on the site and how it is designed. A slim header that keeps an important action visible can help visitors, while a bulky one can get in the way. Watching real visitors use your site is the best guide.

Should my floating button say “Call” or “Book”?

Choose the action most of your mobile visitors want to take. Your analytics and front-desk experience can tell you whether people tend to call or book online.

Do I need a chat widget at all?

Only if someone can respond promptly. A chat tool that goes unanswered can frustrate visitors more than having no chat at all.

Can persistent elements slow down my site?

Some can, especially third-party chat and marketing tools that load extra scripts. Review what each one adds and remove those that do not earn their place.

Latest stories

View all
Web Design · Nov 30, 2026Make Your Website’s Search Empty State Earn Its SpaceA search page that says no results can still help a visitor recover. The person may have used a different term, searched for information…Read story
Our clients
New Year 2027

Build your next chapter in 2027.

Bring your next idea online with a website built around your business, your audience and your goals.