You are here: Reference > CSS > properties > list-style-image

list-style-image property

Browser support:
Specifies a graphic image for a list label.
When the image is available, it will replace the marker set with the 'list-style-type' marker.
JavaScript page for this property: listStyleImage. You can find other example(s) there.

Possible values:

 One of the following values: 
url(URI)
Where URI specifies the location of an image file.
inherit
Takes the value of this property from the computed style of the parent element.
none
Default. No external list-marker is specified.
Default: none.

Example HTML code 1:

This example illustrates the use of the list-style-image property:
<head>
    <style>
        .example {
            list-style-image: url("listImage.png");
        }
    </style>
</head>
<body>
    <ol class="example">
        <li>Apple
        <li>Pear
        <li>Peach
    </ol>
</body>
Did you find this example helpful? yes no

Supported by tags:

Related pages:

External links:

User Contributed Comments

Post Content

Post Content