The list-style-type property specifies the appearance of a list item element. Because it is the only property that defaults to display:list-item, this is usually a <li> element, but can be any element with this display value.
| Initial value | disc |
|---|---|
| Applies to | list items |
| Inherited | yes |
| Media | visual |
| Computed value | as specified |
| Animation type | discrete |
| Canonical order | the unique non-ambiguous order defined by the formal grammar |
The color of the marker will be the same as the computed color of the element it applies to.
/* Partial list of types */ list-style-type: disc; list-style-type: circle; list-style-type: square; list-style-type: decimal; list-style-type: georgian; list-style-type: cjk-ideographic; list-style-type: kannada; /* A <string> */ list-style-type: '-'; /* Identifier matching an @counter-style rule */ list-style-type: custom-counter-style; list-style-type: none; /* Global values */ list-style-type: inherit; list-style-type: initial; list-style-type: unset;
symbols()none<string><custom-ident>@counter-style or one of the predefined styles:disccirclesquaredecimalcjk-decimal
decimal-leading-zerolower-romanupper-romanlower-greeklower-alphalower-latinlower-latin is unsupported in IE7 and earlierupper-alphaupper-latinupper-latin is unsupported in IE7 and earlierarabic-indic-moz-arabic-indicarmenianbengali-moz-bengalicambodian *khmer
cjk-earthly-branch-moz-cjk-earthly-branchcjk-heavenly-stem-moz-cjk-heavenly-stemcjk-ideographic
trad-chinese-informal
devanagari-moz-devanagariethiopic-numeric
georgiangujarati-moz-gujaratigurmukhi-moz-gurmukhihebrew
hiragana
hiragana-iroha
japanese-formal
japanese-informal
kannada-moz-kannadakatakana
katakana-iroha
khmer-moz-khmerkorean-hangul-formal
korean-hanja-formal
korean-hanja-informal
lao-moz-laolower-armenian *malayalam-moz-malayalammongolian
myanmar-moz-myanmaroriya-moz-oriyapersian
-moz-persiansimp-chinese-formal
simp-chinese-informal
tamil
-moz-tamiltelugu-moz-teluguthai-moz-thaitibetan *trad-chinese-formal
trad-chinese-informal
upper-armenian *disclosure-open
<details> is opened.disclosure-closed
<details> is closed.A few more predefined types are provided by Mozilla (Firefox), Blink (Chrome and Opera) and WebKit (Safari) to support list types in other languages. See the compatibility table to check which browsers supports which extension.
-moz-ethiopic-halehame-moz-ethiopic-halehame-amethiopic-halehame-ti-er-moz-ethiopic-halehame-ti-erethiopic-halehame-ti-et-moz-ethiopic-halehame-ti-ethangul-moz-hangulhangul-consonant-moz-hangul-consonanturdu-moz-urdu<counter-style> | <string> | nonewhere
<counter-style> = <counter-style-name> | symbols()where
<counter-style-name> = <custom-ident>
ol.normal {
list-style-type: upper-alpha;
}
/* or use the shortcut "list-style": */
ol.shortcut {
list-style: upper-alpha;
}
<ol class="normal">List 1 <li>Hello</li> <li>World</li> <li>What's up?</li> </ol> <ol class="shortcut">List 2 <li>Looks</li> <li>Like</li> <li>The</li> <li>Same</li> </ol>
cjk-ideographic is identical to trad-chinese-informal; it exists for legacy reasons.| Specification | Status | Comment |
|---|---|---|
| CSS Counter Styles Level 3 The definition of 'list-style-type' in that specification. | Candidate Recommendation | Redefines CSS2.1 counters. Extends the syntax to support @counter-style rules.Defines using @counter-style the usual style types: hebrew, cjk-ideographic, hiragana, hiragana-iroha, katakana, katakana-iroha, japanese-formal, japanese-informal, simp-chinese-formal, trad-chinese-formal, simp-chinese-formal, trad-chinese-formal,korean-hangul-formal, korean-hanja-informal, korean-hanja-formal, cjk-decimal, ethiopic-numeric, disclosure-open and disclosure-closed.Extends <counter-style> with the symbols() functional notation. |
| CSS Lists and Counters Module Level 3 The definition of 'list-style-type' in that specification. | Working Draft | Modify syntax to support for identifiers used in @counter-style rules to keywords.Support for a simple <string>. |
| CSS Level 2 (Revision 1) The definition of 'list-style-type' in that specification. | Recommendation | Initial definition |
| Feature | Chrome | Edge | Firefox (Gecko) | Internet Explorer | Opera | Safari (WebKit) |
|---|---|---|---|---|---|---|
Basic support including :none, disc, circle, square, decimal, lower-alpha, upper-alpha, lower-roman, upper-roman
| 1.0 | (Yes) | 1.0 (1.0) | 4.0 | 3.5 | 1.0 (85) |
lower-latin, upper-latin, lower-greek, armenian, georgian
| 1.0 | ? | 1.0 (1.0) | 8.0 | 6.0 | 1.0 (85) |
decimal-leading-zero | 1.0 | ? | 1.0 (1.0) | 8.0 | 8.0 | 1.0 (85) |
hebrew, cjk-ideographic, hiragana, hiragana-iroha, katakana, katakana-iroha
| 1.0 | ? | 1.0 (1.0) | No support | 7.0 (but displays decimal numbers only) 15.0 | 1.0-1.2 (85-125) |
japanese-formal, japanese-informal, simp-chinese-formal, trad-chinese-formal, simp-chinese-informal, trad-chinese-informal
| No support | ? | 1.0 (1.7 or earlier) -moz 28.0 (28.0) | No support | No support | No support |
korean-hangul-formal, korean-hanja-informal, korean-hanja-formal, cjk-decimal
| No support | ? | 28.0 (28.0) | No support | No support | No support |
ethiopic-numeric, persian, arabic-indic, devanagari, bengali, gurmukhi, gujarati, oriya, tamil, telugu, kannada, malayalam, thai, lao, myanmar, khmer, cjk-heavenly-stem, cjk-earthly-branch
| No support | ? | 1.0 (1.7 or earlier) -moz 33.0 (33.0) [1] | No support | No support | No support |
disclosure-open, disclosure-closed, mongolian
| No support | ? | 33.0 (33.0) | No support | No support | No support |
<string> | No support | ? | 39.0 (39.0) | No support | No support | No support |
| Feature | Android | Edge | Firefox Mobile (Gecko) | IE Phone | Opera Mobile | Safari Mobile |
|---|---|---|---|---|---|---|
| Basic support | ? | (Yes) | ? | ? | ? | ? |
[1] Before Firefox 38, Gecko added a dot as suffix of the number for ethiopic-numeric (፫. instead of ፫). The later spec defined the absence of a suffix and Gecko was then adapted.
© 2005–2017 Mozilla Developer Network and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/CSS/list-style-type