CSS list style image Property
CSS list-style-image Property
The list-style-image property is used to replace the list-item marker with an image. We have to specify the list-style-type property in addition. This property is used if the image for some reason is unavailable.
Default Value:-
Its default value is none.
Syntax:-
Its syntax is:- list-style-image: none | URL | initial | inherit;
Further Explanation:-
Value | Description |
---|---|
none | No image will be displayed. |
url | The path to the image to be used as a list-item marker |
initial | Sets this property to its default value. |
inherit | Inherits this property from its parent element. |