list-style-image: url('arrow.png'); : list style image « CSS « HTML / CSS






list-style-image: url('arrow.png');

   
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
                      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns='http://www.w3.org/1999/xhtml' xml:lang='en'>
    <head>
        <title>list-style-image</title>
<style type='text/css'>
li {
    list-style-image: url('arrow.png');
}
li#other {
    list-style-image: url('arrow2.png');
}
</style>


    </head>
    <body>
        <ul>
            <li>List markers can be customized!</li>
            <li>You can use any image you like.</li>
            <li id='other'>Size and position, however, cannot be controlled.</li>
        </ul>
    </body>
</html>

   
    
    
  








Related examples in the same category

1.'list-style-image' Example
2.list-style-image: url("m.gif")
3.Simple list-style-type and list-style-image example
4.UL list-style-image: url(bullet.gif);