Navigation That Fits on a Phone
Top navigation has to survive a 390 pixel screen before it goes live.
Test these first
Browser support is no longer the excuse it used to be. Everything in this post works in every current browser without a fallback.
- The longest label in the menu
- The widest language you support
- Zoom at 200 percent
If you only change one thing after reading this, make it the spacing. Consistent gaps make even a rough layout look intentional.
Wrapping is fine. Overflow is not.
Colour is the last thing we add. Getting the structure right in black and white first saves a lot of arguing later.
None of this is new. It is the same advice print designers have given for a century, moved onto screens.
We keep a scratch file of small experiments like this one. Most of them go nowhere, but a few end up in every project.
Clients rarely notice these details directly. They notice that the site feels solid, and that nothing jumps around when it loads.
The code is short enough to read in one sitting. That matters, because code you can read is code you can change.
We still get it wrong sometimes. The difference now is that fixing it takes one line instead of an afternoon.
Try it on a small page first, not your whole site. You will learn more from one finished page than a half-finished redesign.
If you build something with this, send it to us. We collect good examples and share the best ones in our reading lists.
6 thoughts on “Navigation That Fits on a Phone”
I tried this on a client site last week and it cut the stylesheet in half.
It holds up, as long as the gap stays consistent.
Good question. We cover that in a follow-up post soon.
Finally someone says it plainly. Thank you.
Simple and it works. My favourite kind of advice.
Printed this out and pinned it above my desk.