How to build responsive navigation
Build a website menu that stays usable as space changes. Choose clear links, add a reliable mobile disclosure, and check keyboard focus, closing behavior and navigation.

Help people reach the next page
Responsive navigation gives visitors a dependable route through your site, whether links sit across a wide header or open from a button on a phone. The work includes what happens after someone opens, closes or follows a link.
This guide builds one simple pattern: a horizontal set of links that becomes a disclosure panel when space runs short. A disclosure shows and hides content without taking over the whole page. It suits many small business sites and portfolios.
1. Choose links around visitor tasks
Imagine a ceramics studio with classes, a shop and a physical location. Its navigation could use these labels:
| Link | What the visitor expects |
|---|---|
| Classes | Available classes and how to join |
| Shop | Pieces available to buy |
| Visit | Address, opening hours and directions |
| About | The studio and the people behind it |
Keep the same destinations in the wide and compact layouts. A phone visitor still needs the full set of useful pages. Put less frequent destinations in the footer where appropriate, and make the studio logo a clearly named link home.
Use the actual labels when designing. A layout that fits “About” may fail with “Private group workshops.” Check that every destination exists before adding it to the header.
3. Switch layouts when the content needs room
Start with the logo, links and any main action at their intended sizes. Narrow the browser until they become crowded. That is the point to consider the compact layout; a particular phone model or a borrowed breakpoint does not decide it for you.
Place the opened panel below the header for this version. Give each link a comfortable row, allow longer labels to wrap, and leave enough room to scroll through the panel on a short screen. Keep the page usable below it.
In Mythos, request this as one focused navigation edit, naming the existing header, destinations and desired behavior. The building and editing workflow explains how to inspect the updated Preview before continuing.
4. Make opening and closing predictable
For this disclosure, keep focus on the Menu button when it opens. Tab should then reach the links in order; Shift+Tab should move back through them. Enter and Space should operate the button. Escape should close an open panel and return focus to its controlling button.
When the panel is closed, its links must not remain invisible stops in the keyboard sequence. Hiding only the panel's appearance is insufficient. HTML's hidden state is one way to remove currently unavailable content from presentation.
Keep keyboard movement consistent with the page's meaning, as described in W3C's focus-order guidance. This panel does not trap focus: visitors can continue into the page after its links.
5. Make focus and location visible
A visitor using Tab needs to see which control will respond next. Give every header link and button a persistent, visible focused state. A clear border or background treatment can fit the site's design; removing the indicator leaves keyboard users guessing. W3C's focus-visible guidance describes this requirement.
Also distinguish the current page. For example, Classes can remain visibly selected while someone reads that page, with aria-current identifying the current destination. This is a different state from keyboard focus.
If you use a sticky header, follow an in-page link and check where its heading lands. The header should not cover the content the visitor came to read.
6. Test the transitions
Check the behavior between states, including changes in width:
| Try this | Check for this result |
|---|---|
| Tab through the closed header | Hidden links are skipped |
| Open the panel, then press Tab | The first available link receives focus |
| Press Escape from a panel link | The panel closes and the button regains focus |
| Follow a link | The intended page opens and the compact panel closes |
| Resize while the panel is open | Navigation stays usable without duplicate controls |
| Return with the browser Back button | The page and navigation state remain understandable |
Open a deeper page directly, too. Navigation should not depend on having visited the homepage first. Repeat the compact-menu journey with touch and a screen reader; a successful mouse check does not establish accessibility.
Published



