Forum Moderators: not2easy
In IE the 'bounce' starts at the second nav button (there are 7) and gets 'taller' on each button - the current nav and roll over nav display a few pixels lower than they should each time. Maybe it's my math? Or the 3 pixel jog? Somewhere in the a:hover or current page values I must have done something to mess up the positioning...
Here's the code:
--wrapper div with only margin set
#nav_wrapper {margin:25px 0 0 25px;}--background image
#nav {position:relative; height:260px; width:100px; margin:0; padding:0;
background:url(nav.gif) no-repeat;}
--list item and base anchor
#nav ii {position:absolute; list-style:none; margin:0; padding:0; left:0; top:0;}
#nav li, #nav a {display:block; height:37px; width:100px; border:0;}
--li position values
#nav_01 {top:0; border:0;}
#nav_02 {top:37px; border:0;}
#nav_03 {top:74px; border:0;}
... and so on
[b]--a:hover values[/b]
#nav_01 a:hover {background:url(nav.gif) -100px 0 no-repeat; border:0;}
#nav_02 a:hover {background:url(nav.gif) -100px -37px no-repeat; border:0;}
#nav_03 a:hover {background:url(nav.gif) -100px -74px no-repeat; border:0;}
... and so on
[b]--current page values[/b]
#nav_01_on {top:0; background:url(nav.gif) -200px 0 no-repeat; border:0;}
#nav_02_on {top:37px; background:url(nav.gif) -200px -37px no-repeat; border:0;}
#nav_03_on {top:74px; background:url(nav.gif) -200px -74px no-repeat; border:0;}
... and so on
I answered my own question. The <a> tag needed the absolute positioning too. This is where the problem was:
#nav ii {position:absolute; list-style:none; margin:0; padding:0; left:0; top:0;}
#nav li, #nav a {display:block; height:37px; width:100px; border:0;}
moved the positioning code
#nav ii {list-style:none; margin:0; padding:0; left:0; top:0;}
#nav li, #nav a {position:absolute; display:block; height:37px; width:100px; border:0;}
Now it works like a charm.