0

I am having problems in IE7 with a HTML/CSS Vertical Menu. In IE7 the Text Changes when I hover and look really jumper as the hover becomes active/unactive.

My HTML is

<table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td align="center"><h5>&nbsp;</h5></td> </tr> <tr> <td height="137" align="center"><blockquote> <div id="vmenu"> <ul> <li> <h5 class="style5">Intermittent Fasting Diet Articles - Navigation</h5> </li> <li><a href="caloriesinblackberries.html">Calories in Blackberries</a></li> </ul> </div> </blockquote></td> </tr> </table> 

And my CSS is:

.offscreen { position: absolute; top: -30em; left: -300em; } div#vmenu { margin: 0; padding: .25em 0em .25em 0em; border: solid 0px #002277; background: #ffffff; width: 13.5em; } div#vmenu ul { margin: 0; padding: 0; list-style: none; } div#vmenu ul li { margin: 0; padding: 0; list-style: none; } div#vmenu ul a:link { margin: 0; padding: .2em 0em .2em .4em; text-decoration: none; font-weight: bold; font-size: medium; background-color: #FFFFFF; color: #000033; display: block; } div#vmenu ul a:active { margin: 0; padding: .25em .5em .25em .5em; text-decoration: none; font-weight: bold; font-size: medium; background: #ffffff; color: #ffffff; display: block; } div#vmenu ul a:visited { margin: 0; padding: .25em .5em .25em .5em; text-decoration: none; font-weight: bold; font-size: medium; background: #ffffff; color: #666666; display: block; } div#vmenu ul li a:hover { margin: 0; padding: .2em 0em .2em .4em; text-decoration: none; font-weight: bold; font-size: medium; background-color: #ffffff; color: #ff6600; display: block; } 

I'm pretty sure this is due to IE7 as the menu looks OK in Opera and Firefox.

1
  • Here is your CSS cleaned up: jsfiddle.net/L4vUV Commented Apr 26, 2013 at 21:24

1 Answer 1

1

My guess would be that it has to do with the multiple definitions for paddings based on pseudo-classes. Because of the box model, when you hover, it is changing the box, shifting the text around, and possibly moving the cursor to an area where the pseudo-class is no longer applicable.

Try removing the padding rules and re-testing.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.