Here is my demo.css
#sidebar {}
#sidebar ul {
list-style-image: url(images/bullet.gif);
}
ul {
list-style-type: circle;
}
and demo.html
<html>
<head>
<link REL="StyleSheet" TYPE="text/css" HREF="demo.css">
</head>
<body>
<ul class="sidebar">
<li> Test1</li>
<li> Test2</li>
</ul>
<ul>
<li> Test3</li>
<li> Test4</li>
</ul>
</body>
</html>
I would expect the two items in the first list to have the image bullet.gif next to them, and the two items in the second list to have circles. What I actually see is that all 4 items have circles. The image file is in the correct place because if I move the list-style-image line to the ul{} they all have the image.
I think I'm just a little confused with the terminology I've been seeing.
What is the #? Maybe it's a class name? Sometimes I see sidebar.ul instead of #sidebar ul - is there a difference?
Thanks!
Dave