CSS - Lists

Lists

In this tutorial, I will be showing you how to style HTML list element using the style properties in CSS.

Outline Properties

LIST STYLE TYPE

The list-style-type property is used to set the type of list markers to be used. Its values include:

  • disc
  • circle
  • square
  • decimal
  • decimal-leading-zero
  • lower-alpha
  • upper-alpha
  • lower-roman
  • upper-roman
  • lower-latin
  • upper-latin

LIST STYLE IMAGE

The list-style-image property is used to set image as a list marker for the list items.

LIST STYLE POSITION

The list-style-position property is used to specify the position of the list markers.

List Style (Shorthand)

tips
TIP:

Setting list-style to none removes the list-style entirely from the list items.

ADVERTISEMENTS

LEARNING IS A CONTINOUS PROCESS - PRACTICE MAKES PERFECT