CSS

There are some CSS properties that can be used to control the list.

CSS list properties

The CSS list properties is used to control the list.

Lists can be classified as ordered lists, unordered lists and definition lists.

The following CSS properties can be use to style the lists.

  • list-style-type
  • list-style-image
  • list-style-position
  • list-style(shorthand)
  • marker-offset

Example

#p1 {
  list-style-type: circle;
}
#p2 {
  list-style-type: square;
}
#p3 {
  list-style-type: lower-alpha;
} 
Try it Now »

Click on the "Try it Now" button to see how it works.