Style listStyleImage Property
The Style object
Definition and Usage
The listStyleImage property sets or returns the image used as the list item marker.
Syntax
Sets the listStyleImage property:
Object.style.listStyleImage="none|
url
|inherit"
Returns the listStyleImage property:
Object.style.listStyleImage
| Value | Description |
|---|---|
| none | Default. No image is displayed. |
| url | Specifies the path to the image. |
| inherit | The listStyleImage property value is inherited from the parent element. |
Browser support





All major browsers support the listStyleImage property.
**Note:** IE7 and earlier versions do not support the "inherit" value. IE8 supports "inherit" only if a !DOCTYPE is specified. IE9 supports "inherit".
Example
Example
Changes the list item marker of the list:
- Coffee
- Tea
- Water
- Soda
Try it »
The Style object