CSS list-style-type
Property
Topic: CSS3 Properties ReferencePrev|Next
Description
The list-style-type
CSS property specifies the type of marker for the list-items.
The following table summarizes the usages context and the version history of this property.
Default value: | disc |
---|---|
Applies to: | List items |
Inherited: | Yes |
Animatable: | No. See animatable properties. |
Version: | CSS 1, 2, 3 |
Syntax
The syntax of the property is given with:
The example below shows the list-style-type
property in action.
Example
Try this code »ol {
list-style-type: decimal-leading-zero;
}
ul {
list-style-type: square;
}
Property Values
The following table describes the values of this property.
Value | Description |
---|---|
disc |
The marker is a filled circle. |
circle |
The marker is a hollow circle. |
square |
The marker is a filled square. |
decimal |
The marker is a –
|
decimal-leading-zero |
The marker is a –
|
lower-roman |
The marker is –
|
upper-roman |
The marker is –
|
lower-greek |
The marker is –
|
lower-latin |
The marker is –
|
upper-latin |
The marker is –
|
armenian |
The marker is –
|
georgian |
The marker is –
|
lower-alpha |
The marker is –
|
upper-alpha |
The marker is –
|
none |
Specifies no marker. |
initial |
Sets this property to its default value. |
inherit |
If specified, the associated element takes the computed value of its parent element list-style-type property. |
Browser Compatibility
The list-style-type
property is supported in all major modern browsers.
Basic Support—
|
Further Reading
See tutorial on: HTML List, CSS Lists.
Related properties: list-style
, list-style-image
, list-style-position
.