Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

HTML DOM Style listStyleImage Property

Style listStyleImage Property

Style Object Reference 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

Internet ExplorerFirefoxOperaGoogle ChromeSafari

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:

Runoob Tutorial(runoob.com)

Try it »


Style Object Reference The Style object