Styling Nested Lists

You may insert one type of list in another; the inner list is known as a nested list. You can do this with ordered and unordered lists (together or independently). There’s also another kind of nested list; see “Creating Description Lists” for an example.

Nesting lists is particularly useful with an outline structured as ordered lists—where you may want several levels of items (Image through Image)—or for navigation with sub-menus structured as unordered lists ( and ; see the sidebar for more details). You can style nested lists a variety ...

Get HTML5 and CSS3: Visual QuickStart Guide, Seventh Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.