![]() |
VOOZH | about |
CSS Lists are used to display items in a clear and organized manner, either with bullets (unordered) or numbers (ordered).
Currently Active Property:
list-style-type: decimal;The list can be categorized into 2 types:
We have the following CSS lists properties, which can be used to control the CSS lists:
| Property | Description |
|---|---|
| list-style-type | Specifies the appearance of the list item marker (e.g., disc, circle, square, numbers, etc.). |
| list-style-image | Sets the image to be used as the list item marker, replacing the default marker with a custom image. |
| list-style-position | Defines the position of the marker relative to the list item's content (inside or outside the list item). |
| list-style | A shorthand property to set list-style-type, list-style-position, and list-style-image together. |
The list-style-type property defines the marker for each list item. By default, unordered lists have a disc-shaped marker. You can change it to different types like numbers, squares, or images.
Syntax:
list-style-type: value;The following value can be used:
| CSS List Style Type | Description |
|---|---|
| none | No bullet or marker is shown for the list items. |
| circle | Displays a hollow circle as the marker, commonly used for unordered lists. |
| decimal | Numbers the list items sequentially, starting from 1 (e.g., 1, 2, 3...). |
| decimal-leading-zero | Similar to decimal, but adds leading zeroes (e.g., 01, 02, 03...). |
| lower-roman | Uses lowercase Roman numerals for list markers (e.g., i, ii, iii...). |
| upper-roman | Shows uppercase Roman numerals as markers (e.g., I, II, III...). |
| lower-alpha | Assigns lowercase alphabet letters (e.g., a, b, c...) for ordered list markers. |
| upper-alpha | Marks ordered list items with uppercase letters (e.g., A, B, C...). |
| square | Displays a solid square as the marker for unordered lists. |
Here some more examples:
Proper CSS list styling improves readability, maintains a consistent design, and ensures lists are visually clear and easy to navigate.