CSS list-style-type property
Example
Set some different list styles:
ul.circle {list-style-type:circle}
ul.square {list-style-type:square}
ol.upper-roman {list-style-type:upper-roman}
ol.lower-alpha {list-style-type:lower-alpha}
Try it »
There are more examples at the bottom of this page.
Property definition and usage
The list-style-type property sets the type of the list item marker.
| Default value: | "disc" for
|
|---|---|
| Inherited: | yes |
| Version: | CSS1 |
| JavaScript syntax: | object.style.listStyleType="square" |
Browser support
The numbers in the table indicate the first browser version that supports this property.
| property | |||||
|---|---|---|---|---|---|
| list-style-type | 1.0 | 4.0 | 1.0 | 1.0 | 3.5 |
Attribute values
| Value | Description |
|---|---|
| none | No marker. |
| disc | Default. 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 number. |
| decimal-leading-zero | Numeric markers starting with 0. (01, 02, 03, etc.) |
| lower-roman | Lowercase Roman numerals (i, ii, iii, iv, v, etc.) |
| upper-roman | Uppercase Roman numerals (I, II, III, IV, V, etc.) |
| lower-alpha | Lowercase English letters. The marker is lower-alpha (a, b, c, d, e, etc.) |
| upper-alpha | Uppercase English letters. The marker is upper-alpha (A, B, C, D, E, etc.) |
| lower-greek | Lowercase Greek letters (alpha, beta, gamma, etc.) |
| lower-latin | Lowercase Latin letters (a, b, c, d, e, etc.) |
| upper-latin | Uppercase Latin letters (A, B, C, D, E, etc.) |
| hebrew | Traditional Hebrew numbering |
| armenian | Traditional Armenian numbering |
| georgian | Traditional Georgian numbering (an, ban, gan, etc.) |
| cjk-ideographic | Simple ideographic numbers |
| hiragana | The marker is a, i, u, e, o, ka, ki, etc. (Japanese hiragana characters) |
| katakana | The marker is A, I, U, E, O, KA, KI, etc. (Japanese katakana characters) |
| hiragana-iroha | The marker is i, ro, ha, ni, ho, he, to, etc. (Japanese hiragana ordering) |
| katakana-iroha | The marker is I, RO, HA, NI, HO, HE, TO, etc. (Japanese katakana ordering) |
More examples
A list of all the different list item markers
This example demonstrates all the different list item markers.
Related Articles
CSS Tutorial: CSS Lists
CSS Reference Manual: list-style property