liveBook · Manning

Navigation

As explained in CSS in Depth, Second Edition

A navigation menu is an interface component containing links for moving among sections or destinations.

A navigation menu groups links for moving among destinations. A responsive example changes from a horizontal mobile menu into a left-docked menu on larger viewports. section 16.2

Build the menu around a few practical decisions:

  • Use an unordered list of links, each combining an SVG icon with a text label. section 16.2

Icons that reveal labels

The menu initially appears as four vertically stacked icons. Hovering reveals the accompanying text, using transitions and transforms to make the interaction more expressive. section 16.2

How CSS in Depth, Second Edition covers it

How deep it goes
Builds markup and responsive CSS, then demonstrates transforms and transitions without detailing their complete implementation.
Examples
Uses icon-and-label links, a mobile horizontal menu, and a large-viewport menu docked to the left.
What you can do after
Build it from scratch as a responsive CSS navigation menu with icons, labels, hover states, and viewport-specific positioning.
How it connects
Connects navigation with responsive design, flexbox, SVG, transforms, transitions, and web fonts.

Also explained in

Compare how 4 books explain navigation →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of CSS in Depth, Second Edition. The section links point to the parts of the book it draws on.