O'Reilly logo

CSS Pocket Reference, 4th Edition by Eric A. Meyer

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

Name

list-style

Values:

<list-style-type> || <list-style-image> || <list-style-position>

Initial value:

Refer to individual properties

Applies to:

Elements whose display value is list-item

Inherited:

Yes

Computed value:

See individual properties

Description:

A shorthand property that defines the marker type, whether a symbol or an image, and its (crude) placement. 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 subsequently 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;}

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