B.59. list-style

This shorthand property lets you set the three list-style properties with a single property declaration.

All three elements are optional, but any property you do not specify will be implicitly set to its initial value (overriding any value specified in a rule of lesser or equal priority).

For this property to have any effect, the target element (or one of its descendants, which will inherit this property) must have it display property set to list-item. The recommended method to set the list-style properties for a list, is to apply the properties to the list element so that the individual list items inherit them.

Inherited: Yes

See also: Section B.60list-style-image, Section B.61list-style-position, and Section B.62list-style-type ...

Get HTML Utopia: Designing Without Tables Using CSS 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.