HTML and CSS Reference
In-Depth Information
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;}