list-style-type
JavaScript syntax:
listStyleType
Values:
disc | circle | square | decimal | decimal-leading-zero | upper-
alpha | lower-alpha | upper-roman | lower-roman | lower-greek|
hebrew | armenian | georgian | cjk-ideographic | hiragana |
katakana | hiragana-iroha | none | inherit
Initial value:
disc
Applies to:
Elements whose display value is list-item.
Inherited:
Yes.
Description:
list-style-type sets the type of marker system of a list.
Examples:
<ol id="myL" class="explanations">
<li>Item 1.</li>
<li>Item 2.</li>
<li>Item 3.</li>
<li>Item 4.</li>
<li>Item 5.</li>
</ol>
<input type="button" value='Set listStyleType to "circle"' onclick="myL.style.listStyleType='circle'">
<br>
<input type="button" value='Set listStyleType to "square"' onclick="myL.style.listStyleType='square'">
<br>
<input type="button" value='Set listStyleType to "disc"' onclick="myL.style.listStyleType='disc'">
<br>
<input type="button" value='Set listStyleType to "lower-alpha"' onclick="myL.style.listStyleType='lower-alpha'">
<br>
<input type="button" value='Set listStyleType to "lower-roman"' onclick="myL.style.listStyle='lower-roman'">
Home
HTML CSS Book
CSS Reference
HTML CSS Book
CSS Reference
Property:
- background
- background-attachment
- background-color
- background-image
- background-position
- background-repeat
- border
- border-bottom
- border-bottom-color
- border-bottom-style
- border-bottom-width
- border-color
- border-left
- border-left-color
- border-left-style
- border-left-width
- border-right
- border-right-color
- border-right-style
- border-right-width
- border-style
- border-top
- border-top-color
- border-top-style
- border-top-width
- border-width
- bottom
- clear
- clip
- color
- content
- counter-increment
- counter-reset
- cursor
- direction
- display
- float
- font
- font-family
- font-size
- font-style
- font-variant
- font-weight
- height
- left
- letter-spacing
- line-height
- list-style
- list-style-image
- list-style-position
- list-style-type
- margin
- margin-bottom
- margin-left
- margin-right
- margin-top
- max-height
- max-width
- min-height
- min-width
- outline
- outline-color
- outline-style
- outline-width
- overflow
- padding
- padding-bottom
- padding-left
- padding-right
- padding-top
- position
- quotes
- right
- text-align
- text-decoration
- text-indent
- text-transform
- top
- unicode-bidi
- vertical-align
- visibility
- white-space
- width
- word-spacing
- z-index
Related: