CSS list-style-position property

Usage

Specifies whether the list marker should be position inside or outside the list.

Values

  • inside - indents both the marker and the text
  • outside - default, only the text is indented

Example

Code:

ul {
  list-style-position: inside;
}