The CSS reference

"list-style-image" - css property (v. css 1)

  • This property sets the image that will be used as the list item marker.
  • Initial value: none
  • The property is inherited
  • HTML usage: elements with 'display: list-item'
  • Browsers that support the list-style-image - property :
    Internet Explorer Mozilla Firefox Opera Google Chrome Apple Safari

Possible list-style-image values:

Values Comments CSS
[url] Url to the image to use as marker. When the image is available, it will replace the marker set with the 'list-style-type' marker. 1
none No image to use as marker. 1
inherit Will inherit the value from parent specification. 2

Property "list-style-image" example:

    <style   type="text/css">
      div {width: 300px;}
      .o1 {
        list-style-type: upper-roman;
      .u1 {
        list-style-image: url(images/Marker.png);
        list-style-position: inside;
  <body >
      Possible list-style properties
      <ol class="o1">
          <ul class="u1">
            <li>Shorthand notation for setting
              all the three previous properties.
              (list-style-position: inside)</li>

Javascript access:

// To SET values ([o] is the target object)
[o].style.listStyleImage="list-style-image value"
// To GET values you must first get the computed style object
// To get that object in IE or Opera:
var cStyle=[o].currentStyle;
// To get that object in Firefox, Chrome or Safari (w3c-type):
var cStyle=window.getComputedStyle([o],null)
// To GET the property value:;
var value=cStyle.listStyleImage;
© 2010 by Finnesand Data. All rights reserved.
This site aims to provide FREE programming training and technics.
Finnesand Data as site owner gives no warranty for the correctness in the pages or source codes.
The risk of using this web-site pages or any program codes from this website is entirely at the individual user.