dublin6
May 25th, 2009, 04:26 PM
Hi,
I have searched forever and can not find a fix this problem. I have a menu that works in all browsers except IE7. It seems to be the standard IE7 hover problem but the forums say that IE7 fixed this and now a:hover should work given that you have the right doctype. This is my DOCTYPE declaration:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
Here is the CSS for the menu:
#mainContent_menu ul{
list-style-type: none;
padding: 0;
margin: 0;
}
#mainContent_menu li a{
text-decoration:none;
display:block;
color:#FFFFFF;
width: 145px;
height: 1%;
}
#mainContent_menu li a:hover{
background-color: #76B2e6;
color: #FFFFFF;
}
body#homepage ul li#home a, body#brandpage ul.none li#brands a, body#hellopage ul.none li#hello a, body#newpage ul.none li#new a, body#plugpage ul.none li#plug a {
background: #76B2e6;
color: #FFF;
}
and here is the HTML:
<body id="homepage">
<div id="mainContent_menu"><ul>
<li id="home"><a href="OurSpace.html">01. our space</a></li>
<li id="brands"><a href="InspiringBrands.html">02. inspiring brands</a></li>
<li id="hello"><a href="SayHello.html">03. say hello</a></li>
<li id="new"><a href="NewAtBlu.html">04. new at blu</a></li>
<li id="plug"><a href="PlugInto.html">05. plug into</a></li>
</ul>
</div></body>
It is really just a simple menu that when you rollover a item the background goes blue, and stays blue for whatever page you are on. It works in IE6, FF, Opera, Safari, and Chrome but does nothing in IE7. Any help or suggestions would be greatly appreciated!
I have searched forever and can not find a fix this problem. I have a menu that works in all browsers except IE7. It seems to be the standard IE7 hover problem but the forums say that IE7 fixed this and now a:hover should work given that you have the right doctype. This is my DOCTYPE declaration:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
Here is the CSS for the menu:
#mainContent_menu ul{
list-style-type: none;
padding: 0;
margin: 0;
}
#mainContent_menu li a{
text-decoration:none;
display:block;
color:#FFFFFF;
width: 145px;
height: 1%;
}
#mainContent_menu li a:hover{
background-color: #76B2e6;
color: #FFFFFF;
}
body#homepage ul li#home a, body#brandpage ul.none li#brands a, body#hellopage ul.none li#hello a, body#newpage ul.none li#new a, body#plugpage ul.none li#plug a {
background: #76B2e6;
color: #FFF;
}
and here is the HTML:
<body id="homepage">
<div id="mainContent_menu"><ul>
<li id="home"><a href="OurSpace.html">01. our space</a></li>
<li id="brands"><a href="InspiringBrands.html">02. inspiring brands</a></li>
<li id="hello"><a href="SayHello.html">03. say hello</a></li>
<li id="new"><a href="NewAtBlu.html">04. new at blu</a></li>
<li id="plug"><a href="PlugInto.html">05. plug into</a></li>
</ul>
</div></body>
It is really just a simple menu that when you rollover a item the background goes blue, and stays blue for whatever page you are on. It works in IE6, FF, Opera, Safari, and Chrome but does nothing in IE7. Any help or suggestions would be greatly appreciated!