Specify an image as the list-item marker in a list:
The listStyleImage property sets or returns an image as the list-item marker.
The listStyleImage property is supported in all major browsers.
Return the listStyleImage property:
Set the listStyleImage property:
Value | Description |
---|---|
none | No image will be displayed. This is default |
url | Specifies the path to the image |
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |
Default Value: | none |
---|---|
Return Value: | A String, representing the location path of the image |
CSS Version | CSS1 |
Return the list-style-image property value:
CSS tutorial: CSS List
CSS reference: list-style-image property
HTML DOM reference: listStyle property