Topic: CSS - IE7 not recognizing link padding |
|
---|---|
Author | Thread |
Nervous Wreck (II) Inmate From: Los Angeles |
posted 01-08-2007 20:54
I am running into an issue where a nagivation list that I have coded displays just fine in Firefox, IE6, and Opera. In IE7 it only displays the background image on hover for the top padding, it ignores the bottom padding. code: #nav { margin-top: 43px; text-align: center; } #nav ul { margin: 0; padding: 0; } #nav ul li { margin: 0; padding: 0; display: inline; height: 36px; } #nav ul li a { color: #FFFFFF; font-size: 14px; text-decoration: none; padding: 10px 9px 10px 9px; } #nav ul li a:hover { background:url(../images/tng_navBG-over.gif) repeat-x; }
code: <div id="nav"> <ul> <li><a href="#">Home</a></li> <li><a href="#">Bio</a></li> <li><a href="#">Appointments</a></li> <li><a href="#">Endorsements</a></li> <li><a href="#">Bookstore</a></li> <li><a href="#">Engagements</a></li> <li><a href="#">Services</a></li> </ul> </div>
|
Maniac (V) Inmate From: there...no..there..... |
posted 01-08-2007 22:34
See if adding line-height will help code: #nav ul li { margin: 0; padding: 0; display: inline; height: 36px; line-height:36px; }
|