The list-style-image property

The list-style-image property sets an image for a list marker.

Syntax

cssselector {
  list-style-image: url("path to an image file") | none;
}

Values

Value Description
url Path to file with an image. The name of the image can be in double quotes, single quotes or without quotes at all.
none Cancels an image for a list.

Default value: none.

Example

html<ul>
  <li>list item</li>
  <li>list item</li>
  <li>list item</li>
  <li>list item</li>
  <li>list item</li>
</ul>
cssul {
  list-style-image: url("li.gif");
}

Результат:

See also