Setting All List-Style Properties at Once

CSS has a shortcut property for the list-style features.

To set all the list-style properties at once:

1.
Type list-style:
2.
If desired, specify the kind of markers that should appear next to the list items, if any (as described on page 218).
3.
If desired, specify the custom marker that should be used for list items (as described on page 220).
4.
If desired, specify whether markers should be hung outside the list paragraphs or flush with the text (as described on page 221).

✓ Tips

  • You may specify any or all of the three list-style properties.

  • You might think that by omitting one of the three properties, you won’t be affecting it, but that’s not always the case. Any properties not explicitly set are ...

Get HTML, XHTML, & CSS, Sixth Edition: Visual QuickStart Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.