Advertisement
Google Ad Slot: content-top
CSS List
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:
- Unordered Lists (
<ul>): Typically represented with bullets. - Ordered Lists (
<ol>): Typically represented with numbers.
List style type:
The list-style-type specifies the marker style for list items.
Syntax:
list-style-type : none | disc | circle | square | decimal | lower-alpha | upper-roman;
List style position:
The list-style-position specifies whether the marker is inside or outside the list item.
Syntax:
list-style-position : inside | outside;
List style shorthand:
The list-style shorthand to combine all list styles in one declaration.
Syntax:
list-style: list-style-type list-style-position;
List style image:
The list-style-image allows you to use an image as the list marker.
Syntax:
list-style-image: url;