View Full Version : List style image help

05-02-2006, 10:45 PM
Hello friends,
I have a quick question regarding list style images:

Note: There is no problem in Firefox, this is just an IE issue.

I use an image to replace the default list style images at my website (http://www.rhstevenson.com) but in IE when I rollover any link on the page, the image goes away.

Here is my CSS:
#navlist {
margin-bottom: auto;
display: block;
line-height: 17px;
list-style-image: url(Images/dots.jpg);

It's rather difficult to explain, perhaps if you have time you can go to my website (http://www.rhstevenson.com) and take a look, if you're using IE..

Does anyone have an idea why this happens, and if so, how i could fix it?
Thanks in advance,

05-02-2006, 11:31 PM
I can't say for sure but it might be because IE is calculating the anchor (text) width over the top of these images. Try removing the width and see if it still occurs?

05-02-2006, 11:43 PM
Great! you fixed my problem, however how do i replace the code i took out:

Now everything works perfectly, except it is aligned off to the right now...

Thank you!

Well i fixed the issue... I guess you're right that something was covering it up, because i simply changed margin-left:0px; to margin-left:10px; And it works now. Anything less than 10px covers up part of the image until around 5px then it goes away entirely. For now i'll just have to deal with the 10px difference...

Thank you very much for all your help!

05-03-2006, 12:00 AM
You could try putting the list-bullets into the actual list items themselves with the anchor text; using JavaScript hovers; repositioning the list itself, or an element containing the list.