Webmaster

References : Style sheets


List properties

When the list-item value is assigned to the display property of an element, a marker box is combined with the principal box of the element. This marker defines the decoration (image, glyph, or number) associated with a list item The following properties can be applied to markers and lists.

list-style | list-style-image | list-style-position | list-style-type

list-style
Shorthand property to set the three properties in one go: list-style-type, list-style-image and list-style-position.
 
CSS1 value['list-style-type' || 'list-style-position' || 'list-style-image']
 
CSS2 valueinherit
 
Initial valueNot defined.
 
Applied to Elements whose display property is assigned the list-item value.
 
Inherited Yes.
 
 Top
list-style-image
Defines the image used as the marker for the list item.
 
CSS1 value<uri> | none
 
CSS2 valueinherit
 
Initial valuenone
 
Applied to Elements whose display property is assigned the list-item value.
 
Inherited Yes.
 
 Top
list-style-position
Specifies the position of the marker box in relation to the element's box.
 
CSS1 valueinside | outside
 
CSS2 valueinherit
 
Initial valueoutside
 
Applied to Elements whose display property is assigned the list-item value.
 
Inherited Yes.
 
 Top
list-style-type
Specifies the appearance of the list item marker when the list-style-image property has the value none.
 
CSS1 valuedisc | circle | square | decimal | lower-roman | upper-roman | lower-alpha | upper-alpha | none
 
CSS2 valueleading-zero | western-decimal | lower-greek | lower-latin | upper-latin | hebrew | armenian | georgian | cjk-ideographic | hiragana | katakana | hiragana-iroha | katakana-iroha | inherit
 
Initial valuedisc
 
Applied to Elements whose display property is assigned the list-item value.
 
Inherited Yes.
 
 Top