CSS Basic Tutorial
CSS Flexbox
In CSS, lists can be styled in various ways, including changing the appearance of the list markers (bullets or numbers), adjusting spacing, or even creating custom marker styles. There are two main types of lists in HTML:
<ul>
): Typically represented with bullets.<ol>
): Typically represented with numbers.Try it yourself
The list-style-type
specifies the marker style for list items.
list-style-type : none | disc | circle | square | decimal | lower-alpha | upper-roman;
Try it yourself
The list-style-position
specifies whether the marker is inside or outside the list item.
list-style-position : inside | outside;
Try it yourself
The list-style
shorthand to combine all list styles in one declaration.
list-style: list-style-type list-style-position;
The list-style-image
allows you to use an image as the list marker.
list-style-image: url;
Try it yourself