December 20, 200817 yr Back again with what's probably another simple solve! I've got some css rollovers going on in the menu of the site I'm slowly working on. They're working fine in all browser that I know of except the IE family. Can any of you knowledgable souls shed a little light on what the devil's going on? http://www.trianglehead-design.com/corfups...logy/index.html Cheers
December 20, 200817 yr The reason why it's not working is that the <a> tag is taller than 11px, and so in IE that stretches the height so that it fits. This means that when you set the background position to bottom left, it goes further down than you want. And because you have set overflow to hidden, you cannot see this happening. My quick fix would be to use "0 -11px" for the background position instead of "left bottom".
December 20, 200817 yr Author Cheers Anthony that's worked a treat. I'm a bit confussed though when you say the <a> tag is taller than 11px. Do you mean because the image contained within is 22px? I'm being silly aren't I!?
December 20, 200817 yr I'm a bit confussed though when you say the <a> tag is taller than 11px. Do you mean because the image contained within is 22px? No, the image is in the background so has no affect on the size. It's because the font-size for the <a> tag is 12px and therefore in IE it's stretching the height.
Create an account or sign in to comment