Forum Moderators: not2easy
(both images are 154x30px)
#menu {
margin: 0;
padding: 0;
list-style-type: none;
} #menu LI {
margin: 6px 3px;
} #menu A {
display: block;
padding: 4px 0;
width: 154px;
height: 16px;
background-image: url(images/button.gif);
background-repeat: no-repeat;
text-decoration: none;
text-align: center;
font-size: 14px;
color: #fff;
} #menu A:hover {
background-image: url(images/button_over.gif);
background-repeat: no-repeat;
} <UL id="menu">
<li><A href="/index.html">Home</A></li>
<li><A href="/products.html">Products</A></li>
<li><A href="/contactus.html">Contact Us</A></li>
</UL>
And it's not a flicker - that would be no problem as there are a number of fixes for that including setting the LI background permanently to the 'off' state behind the A which switched from 'off' to 'on'.
The problem is that while moving the mouse over the menu the actual link text is duplicated and dumped on top of other links making everything illegible.
ie. the word 'Products' is piled on top of the words 'Contact Us', etc. I've seen screenshots of this and it's not pretty :(
HELP!
(I can sticky the URL if anyone's interested...)
I was hoping to find someone who'd experienced this on another site - it's definately a bug and I've had people on two continents verify reporting it - one using IE5.5 and the other using IE6.0.
Thanks for those who've had a look. If anything else comes to light I'll post it here.
[edit]I'm fairly certain it's not a problem with the CSS selectors as suggested above[/edit]
I take your point however, that IE(Win) might behave that way, but that makes it even buggier than I thought it was.
How could the background-image of a container changing have any effect at all on the text inside it?!? And we're going to be stuck with this POS as the default browser for the next year or more?!?
I'm with RamboTribble on this one, reassign the A attributes to a class and apply the class to all LI tags.
Incidentally, the machine I'm on now has IE 5(win95). If you sticky me the URL I'd be happy to see if the problem replicates for me.
<UL id="menu">
<li><A href="/index.html">Home</A></li>
<li><A href="/products.html">Products</A></li>
<li><A href="/contactus.html">Contact Us</A></li>
</UL>
But, it's starting to look like IE might be assigning it's own pseudo-id to each of the LI's and/or A's and losing track of which is which during the :hover event.
Still haven't found any reference to this particular problem on the WWW...