CSS list-style-image property
Example
Specify an image for the list item marker:
ul
{
list-style-image:url('sqpurple.gif');
}
Try it »
Property definition and usage
The list-style-image property uses an image to replace the list item marker.
**Note:** Always specify a "list-style-type" property in case the image is unavailable.
| Default value: | none |
|---|---|
| Inherited: | yes |
| Version: | CSS1 |
| JavaScript syntax: | object.style.listStyleImage="url('/images/blueball.gif')" |
Browser support
The numbers in the table indicate the first browser version that supports this property.
| property | |||||
|---|---|---|---|---|---|
| list-style-image | 1.0 | 4.0 | 1.0 | 1.0 | 7.0 |
Attribute values
| Value | Description |
|---|---|
| URL | The path to the image. |
| none | Default. No image is displayed. |
| inherit | Specifies that the list-style-image property should be inherited from the parent element. |
Related Articles
CSS Tutorial: CSS Lists
CSS Reference Manual: list-style property