CSS Drop-down Menu rendering problem in IE. HELP?!
This is the css:
Code:
/*** Nav bar styles ***/
ul.nav,
.nav ul{
/*Remove all spacings from the list items*/
margin: 0;
padding: 0;
cursor: default;
list-style-type: none;
display: inline;
}
ul.nav{
display: table;
}
ul.nav>li{
display: table-cell;
position: relative;
padding-top: 2px;
padding-right: 10px;
padding-bottom: 2px;
padding-left: 2px;
}
ul.nav li>ul{
/*Make the sub list items invisible*/
display: none;
visibility: hidden;
position: absolute;
max-width: 40ex;
margin-left: -6px;
margin-top: 0px;
}
ul.nav li:hover>ul{
/*When hovered, make them appear*/
display : block;
visibility:visible;
}
.nav ul li a{
/*Make the hyperlinks as a block element, sort of a hover effect*/
display: block;
padding: 1px 6px;
font-family: tahoma;
font-size: 12px;
}
/*** Menu colors (customizable) ***/
ul.nav,
.nav ul,
.nav ul li a{
background-color: #fff;
color: #666666;
}
ul.nav li:hover,
.nav ul li a:hover{
background-color: #FFFFFF;
color: #999999;
}
ul.nav li:active,
.nav ul li a:active{
background-color: #FFFFFF;
color: #666666;
}
ul.nav,
.nav ul{
}
.nav a{
text-decoration: none;
}
What kind of modification is this css need to display correctly in IE also?
In FireFox works fine...but in IE it displays as a LIST without formatting...