I have a ul list declared in my external css stylesheet, and for some reason the list image is not showing up. Any ideas?
Here is the css list code:
ul { margin:0; padding:0; list-style:none}
.ul3 li { background:url(images/a3.gif) no-repeat 0 9px; line-height:19px; margin:0px; padding:0px; color:#7B7B7B ; padding-left:8px }
.ul3 li a {color:#7B7B7B; font-weight:bold}
As mentioned, I didn't think it would render the way you want with that code. Setting margin and padding to 0 for both UL and LI will lead to problems.
Firstly, check the file path for the image or check the image resides in the file path. Then just start with the basic css and move on from there:
.ul3 {
list-style-image: url(images/a3.gif);
}
.ul3 li {
line-height:19px;
}
Essentially, by setting margin and padding to 0, you're hiding the bullet image.
.ul3 li needs to make no reference to the bullet image
isaacr25
ASKER
Ok,
Using the following css code, the bullet images show up fine in Dreamweaver, but in IE7, they don't show up at all. What more do I need to do? Thanks for your patience and help.
The only issue is that there seems to be a lot padding on the left. The cell actually starts directly under the "A" in "Awards." What controls this padding? If you want me to post this in a different post, I'll be glad to, since you've solved my first issue. Let me know. Thanks.
Change:
ul { margin:0; padding:0; list-style:none}
to
ul { margin:0; padding:0;}
and providing the path to the image file is correct, it'll work.