ScanSkill

list-style-image

The list-style-image property defines the list-item marker to replace with an image.

Syntax

list-style-image: none | url;

Example

        .div-1 > li{
            list-style-image: url('./sample.jpg');
            list-style-type: square;
        }

        .div-2 > li{
            list-style-image: none;
            list-style-type: square;
        }
list-style-image

Property Values

none: image is not displayed. The list-style-type property will be displayed instead.

url: image with provided url/path will be displayed as a list item marker.