list-style-image property
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:
Where URI specifies the location of an image file. | |||||||
Takes the value of this property from the computed style of the parent element. | |||||||
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?
|
Supported by tags:
Related pages:
External links:
list-style-image (MSDN)
list-style-image (Mozilla Developer Center)
list-style-image (Safari Reference Library)
list-style-image (W3C)
list-style-image (Mozilla Developer Center)
list-style-image (Safari Reference Library)
list-style-image (W3C)
User Contributed Comments