141 of 313 menu

The list-style-type property

The list-style-type property allows you to make squares or circles for the ul list instead of point markers. For the ol list instead of usual numbers, you can use Roman numbers, numbering in the form of letters: Latin or Greek.

Syntax

selector { list-style-type: value; }

Values for ul

Value Description
circle Creates circle markers.
disc Creates filled circle markers.
square Creates square markers.
none Removes markers.

Default value: disc.

Values for ol

Value Description
armenian Traditional Armenian numbering.
decimal Arabic numbers.
decimal-leading-zero Arabic numbers with a leading zero for digits less than ten.
georgian Traditional Georgian numbering.
lower-alpha Lowercase Latin letters.
lower-greek Greek lowercase letters.
lower-latin This value is similar to lower-alpha.
lower-roman Roman numerals in lower case.
upper-alpha Capital Latin letters.
upper-latin This value is similar to upper-alpha.
upper-roman Roman numbers in upper case.
none Removes markers.

Default value: decimal.

Example

<ul> <li>list item</li> <li>list item</li> <li>list item</li> <li>list item</li> <li>list item</li> </ul> ul { list-style-type: disc; }

:

Example

<ul> <li>list item</li> <li>list item</li> <li>list item</li> <li>list item</li> <li>list item</li> </ul> ul { list-style-type: circle; }

:

Example

<ul> <li>list item</li> <li>list item</li> <li>list item</li> <li>list item</li> <li>list item</li> </ul> ul { list-style-type: square; }

:

Example

<ul> <li>list item</li> <li>list item</li> <li>list item</li> <li>list item</li> <li>list item</li> </ul> ul { list-style-type: none; }

:

Example

<ol> <li>list item</li> <li>list item</li> <li>list item</li> <li>list item</li> <li>list item</li> </ol> ol { list-style-type: decimal; }

:

Example

<ol> <li>list item</li> <li>list item</li> <li>list item</li> <li>list item</li> <li>list item</li> </ol> ol { list-style-type: armenian; }

:

Example

<ol> <li>list item</li> <li>list item</li> <li>list item</li> <li>list item</li> <li>list item</li> </ol> ol { list-style-type: decimal-leading-zero; }

:

Example

<ol> <li>list item</li> <li>list item</li> <li>list item</li> <li>list item</li> <li>list item</li> </ol> ol { list-style-type: georgian; }

:

Example

<ol> <li>list item</li> <li>list item</li> <li>list item</li> <li>list item</li> <li>list item</li> </ol> ol { list-style-type: lower-alpha; }

:

Example

<ol> <li>list item</li> <li>list item</li> <li>list item</li> <li>list item</li> <li>list item</li> </ol> ol { list-style-type: lower-greek; }

:

Example

<ol> <li>list item</li> <li>list item</li> <li>list item</li> <li>list item</li> <li>list item</li> </ol> ol { list-style-type: lower-latin; }

:

Example

<ol> <li>list item</li> <li>list item</li> <li>list item</li> <li>list item</li> <li>list item</li> </ol> ol { list-style-type: lower-roman; }

:

Example

<ol> <li>list item</li> <li>list item</li> <li>list item</li> <li>list item</li> <li>list item</li> </ol> ol { list-style-type: upper-alpha; }

:

Example

<ol> <li>list item</li> <li>list item</li> <li>list item</li> <li>list item</li> <li>list item</li> </ol> ol { list-style-type: upper-roman; }

:

Example

This example shows that the color property affects not only a text color, but also a color of markers:

<ul> <li>list item</li> <li>list item</li> <li>list item</li> <li>list item</li> <li>list item</li> </ul> ul { list-style-type: disc; color: red; }

:

See also

byenru