views:

62

answers:

1

I have an issue with list-style-image property in CSS with Internet Explorer 8

If I set

li {
 float:left;
 list-style-image: none;
}

each menu item is above each other. If I remove list-style-image:none, they are perfectly positioned instead, but they have the dot image. (see images)

alt text alt text

+1  A: 

The elements of the list collapse since you set float:left to <li/> and to the inner <a/>. There is no need to; removing float:left from <a/> solves the problem.

As for the list bullets, like said before, list-style-type:none is the way to go.

Especially for IE8, I also suggest to remove the line-height:0 in #block-menu-primary-links. It may cause the collapsing behavior.

Note: I don't really understand the suggestion by @orokusaki. Tried without position:relative;, and it works perfectly well.

MainMa
hey, indeed position:relative doesn't help at all. But the point is that it still doesn't work in IE. Try to give a look, I modified what you suggested but still the menu collapses.
Patrick
@Patrick: you have forgotten to remove `line-height:0` in `#block-menu-primary-links`. Since each element has its height set to 0 pixels, it doesn't take any place, so doesn't move the next elements to the right. I agree that it's not something logical, but that's why normal browsers do not have this problem.
MainMa
@MainMa: ok thans a lot
Patrick