SponsorYour name here · $500/mo
floating navbar
floating toolbar

Up top, a floating navbar; below, a floating toolbar: its blue button folds it away

Floating Navbar vs. Floating Toolbar

/ position: fixed; border-radius: 9999px · backdrop-filter: blur(12px) /

also called floating pill bar, pill navbar, floating island nav, floating action bar, floating dock (web term)

“The floating bar that is not full width” is a floating navbar when it holds a site's links near the top, and a floating toolbar when it holds a page's action buttons, usually near the bottom (Material 3's HorizontalFloatingToolbar). Either one is a rounded pill set a few pixels in from the screen edges (position: fixed), often frosted so the page shows through as it scrolls behind. The toolbar can fold down to one round button and open again. It is not a header, which runs edge to edge, nor a bottom navigation bar, a selection toolbar that exists only while something is selected, or a single floating action button.

If you called it…

“the floating bar at the bottom that is not full width where other buttons sit on”“the floating centered top menu navigation bar”“an action menu that pops out with commands and minimizes when you scroll away from it”“the rounded menu at the top that doesn't touch the edges of the screen”“glassy pill menu over scrolling content”“sticky expandable menu that shrinks to one button”“悬浮横向导航栏”

…you meant Floating Navbar vs. Floating Toolbar.

Anatomy — every part, named

  1. 1
    Floating navbar<nav> + position: fixed

    “The rounded menu floating near the top” is a floating navbar: the site's links in a pill set in from the edges, with the page scrolling behind it.

  2. 2
    Floating toolbarHorizontalFloatingToolbar

    “The pill at the bottom holding action buttons” is a floating toolbar, a capsule of commands for this page rather than links to other pages.

  3. 3
    Collapse toggleexpanded

    “The button that shrinks the pill down to a dot” is the collapse toggle: it folds the other actions away and brings them back.

Prompt — paste into your agent

Build a floating navbar: a <nav> of site links in a rounded pill (position: fixed; border-radius: 9999px) centered a few pixels below the top edge, narrower than the page, with backdrop-filter: blur(12px) so content shows through as it scrolls behind. Or build a floating toolbar (Material 3 HorizontalFloatingToolbar; on the web, role="toolbar"): a capsule of icon buttons floating above the bottom edge that folds to one button and expands again. Keep either bar off the screen edges, and pad the page so it never covers the last line.

Debug prompt — when it misbehaves

Paste this, then describe what you’re seeing — it hands your agent the classic failure modes to rule out first.

Debug my floating navbar or floating toolbar (position: fixed, backdrop-filter, HorizontalFloatingToolbar, role="toolbar"). Rule out: the bar scrolling away or anchoring to the wrong box because an ancestor has a transform or filter, which re-anchors position: fixed; the frosted look missing because the background is fully opaque or -webkit-backdrop-filter is not set for Safari; the last content hidden under the bar because the page has no bottom padding; the bar covering the phone's home indicator because env(safe-area-inset-bottom) is ignored; icons squishing because the collapse animates scaleX instead of width; folded buttons still reachable with Tab because they are not inert; the bar flickering open and closed because every tiny scroll change toggles it. The symptom:

In code

The exact names this thing goes by in code — each row is one framework’s word for it. Use the row that matches your project (or paste it into your prompt).

CSSposition: fixed; border-radius: 9999pxlifts the bar off the edges into a pill
CSSbackdrop-filter: blur(12px)the frosted look as the page scrolls behind it
Jetpack ComposeHorizontalFloatingToolbar(expanded = …)Material 3's floating capsule of actions
Jetpack Compose.floatingToolbarVerticalNestedScroll(…)folds the toolbar as the list scrolls down
HTML<nav>the landmark for the navbar's links
ARIArole="toolbar"groups the toolbar's buttons

See also

From the maker of this site48h Icons · Custom Apple app icons in 48 hours