simon551
IS-IT--Management
- May 4, 2005
- 249
Can't get this menu to work right in IE. Let me know if I need to post the javascript. I think it's a CSS problem though.
When hovering on a menu item, the pointer is not activated for the link. In firefox, the mouse pointer
changes to a little hand signifying link when hovering on the <li> but in IE it does not become
a link until you actually are over the link word.
When hovering on a menu item, the pointer is not activated for the link. In firefox, the mouse pointer
changes to a little hand signifying link when hovering on the <li> but in IE it does not become
a link until you actually are over the link word.
Code:
/* CSS Document */
#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 */