O'Reilly logo

CSS Quick Syntax Reference by Mikael Olsson

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 23

image

List

The CSS list properties deal with the list elements, specifically the <ul>, <ol>, and <li> elements.

list-style-type

Lists are rendered with a marker shown before each list item element (<li>). The appearance of this marker can be changed using the list-style-type property. For an unordered list (<ul>), each list item is marked in the same way. The predefined bullet values shown here can be used, with disc (a filled circle) as the default value:

list-style-type : inherit | disc | circle | square | none

In an ordered list (<ol>), each list item is marked with a numeric character to show its position in the sequence. All major browsers ...

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