O'Reilly logo

More Eric Meyer on CSS by Eric A. Meyer

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 5. List-Based Menus

 

In America, even your menus have the gift of language….

Oh, those menus. In America, they are poetry.

 
 --LAURIE LEE

There has been a movement in the CSS design community toward an increased use of unordered lists to contain, well, just about everything. Although this has on occasion been taken a little too far, a very common technique nowadays is to take collections of links (sometimes called menus) and place them inside lists, with one link per list item.

Why is this such a popular approach? There are a few reasons. The most important is that, when you have a list of links, it makes a great deal of sense to enclose them in a list. From the semantic-markup point of view, it's a pretty close match.

From a styling point ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required