simon551
07-20-2007, 09:12 PM
This is my code which validates at w3.org/validator. The problem I am having is that in IE7 the link does not become active unless you point directly at the text. the entire link box should act as a link, which it does in FF and also if I take out the <doctype> declaration. I've tried this in XHTML strict and transitional but nothing except no doctype declaration at all seems to let my menu work the way I want it to. Any idea why?
#menu ul {
margin: 0px;
padding: 0;
list-style: none;
width: 155px;
border-bottom: 1px solid #ccc;
}
#menu ul li {
position: relative;
}
#menu li ul {
position: absolute;
right: 154px;
top: 0;
display: none;
}
#menu ul li a {
display: block;
text-decoration: none;
/* color: #333;
*/
color:#564b47;
background-color: #FFFFFF;
padding: 5px;
border: 1px solid #ccc;
border-bottom: 0;
cursor: pointer;
}
#menu li:hover ul, li.over ul {
display: block;
cursor: pointer;
}
#menu ul a:hover, #menu ul a:focus
{
background-color: #EEE;
cursor: pointer;
}
/* Fix IE. Hide from IE Mac \*/
* html ul li { float: left; height: 1%; }
* html ul li a { height: 1%; }
/* End */
#menu ul {
margin: 0px;
padding: 0;
list-style: none;
width: 155px;
border-bottom: 1px solid #ccc;
}
#menu ul li {
position: relative;
}
#menu li ul {
position: absolute;
right: 154px;
top: 0;
display: none;
}
#menu ul li a {
display: block;
text-decoration: none;
/* color: #333;
*/
color:#564b47;
background-color: #FFFFFF;
padding: 5px;
border: 1px solid #ccc;
border-bottom: 0;
cursor: pointer;
}
#menu li:hover ul, li.over ul {
display: block;
cursor: pointer;
}
#menu ul a:hover, #menu ul a:focus
{
background-color: #EEE;
cursor: pointer;
}
/* Fix IE. Hide from IE Mac \*/
* html ul li { float: left; height: 1%; }
* html ul li a { height: 1%; }
/* End */