I managed to get it fixed. I wouldn't do the menu that way at all, images for navigation are just bad for accessibility, but this works.
First you need to use conditional comments and a separate css file to target IE6. This goes in your <head> section:
Quote:
<!--[if lt IE 7]>
<link href="template_files/iefixes.css" rel="stylesheet" type="text/css" />
<![endif]-->
|
I also changed the menu and made it a true list:
Quote:
<div id="menu">
<ul>
<li class="h"><a href="http://www.ageoflegends.net/"><img src="images/empty.gif" alt="Home" height="25" width="58"></a>
<li class="f"><a href="http://www.ageoflegends.net/boards"><img src="images/empty.gif" alt="Forums" height="25" width="66" /></a>
</ul>
</div>
|
And here's the CSS:
Quote:
#menu {
height: 25px;
background: url(images/bar25px.gif) repeat-x;
text-align: center;
clear: both;
/*position: relative;*/
/*top: -5px;*/
}
#menu ul{
list-style-type: none;
margin: 0;
padding: 0;
height: 25px;
}
#menu li, #menu li.h, #menu li.f{
display: inline;
margin: 0 10px;
padding: 10px 0px 0px 0;
}
#menu li a {
padding: 0;
margin: 0;
/*position: relative;
top: 3px;*/
}
#menu img {
border: none;
}
#menu li.h {
background: url(images/menu_home.gif) no-repeat;
}
#menu li.h a:hover, #menu li.h a:focus {
background: url(images/menu_home_over.gif) no-repeat;
margin: 0;
padding: 10px 0 0 0;
}
#menu li.f {
background: url(images/menu_forums.gif) no-repeat;
}
#menu li.f a:hover, #menu li.f a:focus {
background: url(images/menu_forums_over.gif) no-repeat;
margin: 0;
padding: 10px 0 0 0;
}
IEfixes.css file
#menu li{
margin: 0 10px;
padding: 0px 0px 0px 0;
}
#menu ul li.h, #menu ul li.f{
margin: 0 5px 0 0;
padding: 0px;
}
#menu li a{
vertical-align: bottom;
height: 1%;
margin: 0;
padding: 0px;
}
#menu ul li.f a:hover, #menu ul li.f a:focus, #menu ul li.h a:hover, #menu ul li.h a:focus{
padding: 0;
margin: 0;
}
|
Putting the proper height and width on the gifs in the menu was the first thing to do, which meant taking that OUT of the CSS.
I commented out the stuff you don't need and that includes that conditional comment you had in the html trying to correct the padding issue.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!
Please login or register to view this content. Registration is FREE
Please login or register to view this content. Registration is FREE
|