![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| ||||
| ||||
|
|
Im trying to create a rollover effect for my navbar, but as usual, IE is screwing things up! Everything is fine in Firefox (as usual!) but IE seems to be stretching the elements to the end of the page when I Hover over. |
|
ul#navList li a:link, ul#navList li a:visited { font-family:"Trebuchet MS", Verdana, Arial; font-size:14px; color:#FFFFFF; text-decoration: none; padding-right: 7px; padding-left: 5px; } |
|
ul#navList li a:hover{ font-family:"Trebuchet MS", Verdana, Arial; color:#FFFFFF; text-decoration: none; padding-right: 7px; padding-left: 5px; display:block; background-color:#FF6600; height: 100%; width: 100%; } |
|
I added the height and width to 100% to the above rule to get the effect. PS - Ive just noticed the text appears to be jumping up one pixel when you roll over. Any reason for this??? |
![]() |
| Thread Tools | |
| Display Modes | |
| |