This property sets the image that will be used as the list item marker. When the image is available, it will replace the marker set with the ‘list-style-type’ marker. That also means that if the image is not available, it will show the style specified by list-style-property
Overview tablenone
listStyleImage
list-style-image: inherit
list-style-image: none
list-style-image: url(path/to/image.png)
The following examples shows the different possible values you can use for the list-style-image property. It also contains an example to show what happened when an unavailable image is not provided and how to use ‘none’ to break the inheritance.
.first-list {
list-style-image: url(/docs/w/skins/webplatform/images/logo.svg);
}
.second-list {
list-style-image: url(favicon.ico);
}
.third-list {
list-style-image: url(/docs/w/skins/webplatform/images/logo.svg);
}
.third-list .third-list-inner-non-inherit {
list-style-image: none;
}
.fourth-list {
list-style-image: url(http://wrong.url.used.com);
list-style-type: disc;
}
Usage
The property has limited positioning options for the background image, and in some circumstances doesn’t work at all in IE.
So it has become a far more common practice to simply set a background image on the list items.
Notes RemarksWhen the image is available, it replaces the marker that is set with the list-style-type marker. If the left margin of the list item is set to 0 using one of the margin properties, the list-item markers do not show.
Related specificationslist-style-image
Mozilla Developer Network : Article
Microsoft Developer Network: [Windows Internet Explorer API reference Article]
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4