list-style-image: url('collapsed_folder.gif'); : url « Style Basics « HTML / CSS






list-style-image: url('collapsed_folder.gif');

 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
    <head>
        <title></title>
        <style type='text/css'>
            li {
                list-style-image: url('collapsed_folder.gif');
            }
            li + li + li + li + li {
                list-style: inside url('exploded_folder.gif');   
            }
        </style>
    </head>
    <body>
        <ul>
            <li> My Pictures</li>
            <li> My Music</li>
            <li> My Documents</li>
            <li> My Computer</li>
            <li> Control Panel</li>
        </ul>
    </body>
</html>

 








Related examples in the same category

1.background-image using the url function, which takes the URL of a file as its only parameter
2.you only have to put a URL in quotes if the URL contains whitespace.