Formatting Lists w/CSS3



index
Disabled back button Next Section
printable version

Section 1: Overview

CSS can be used to alter the bullets on unordered lists and the numbering style on ordered lists.

Section 2: Customizing Unordered Lists

The default bullet for an unordered list is a disc, but other options are available.


list-style-type

The list style type can be set on either the <ul> or <li> tag.


list-style-image

An image can also be used as a bullet in an unordered list.

An image can be used as a bullet for a list item as well.

Section 3: Customizing Ordered Lists

With ordered lists the property list-style-type can be used to change the sequence values.

Section 4: Let's Play

Click the "Edit and Click Me >>" to see the results of the html code in the left panel in the panel on the right.

Then, play around with the html code, making changes and seeing the effect of those changes in the right panel.