Name

list-style

Values:

[ <list-style-type> || <list-style-image> || <list-style-position> ] | inherit

Initial value:

Refer to individual properties.

Applies to:

Elements whose display value is list-item.

Inherited:

Yes.

Computed value:

See individual properties.

Description:

This is a shorthand property that condenses all the other list-style properties. Because it applies to any element that has a display of list-item, it will apply only to li elements in ordinary HTML and XHTML, although it can be applied to any element and inherited by list-item elements.

Examples:

ul {list-style: square url(bullet3.gif) outer;} /* values
are inherited by 'li'
elements */
ol {list-style: upper-roman;}

Supported by:

Firefox, Internet Explorer, Opera, Safari.

Get CSS Pocket Reference, 3rd Edition 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.