The text on my drop down menus are not aligned in the center of the box in IE. Works in Netscape.
Why is it not working in IE? Is there any way to fix the problem?
[URL=http://www.impulsenc.com/example/testNav.htm]click here to see navigation
[code=php]<style type=”text/css” media=”screen”>
/* css for the nav menu starts here */
body {
margin:0px;
padding:0px;
background-color:#ffffff;
font:80%;
font-family:Verdana, Arial, Helvetica, sans-serif;
}
#menu {
position:absolute; /* menu position that can be changed at will*/
top:0px;
left:0px;
z-index:20;
width:100%; /* precision for Opera */
font-size:12px;
color:#ffffff;
/*background-color:none;*/
}
dl, dt, dd, ul, li{
margin:0px;
padding:0px;
list-style-type:none;
}
#menu dl {
float:left;
width:12em;
}
#menu dt {
cursor:pointer;
text-align:center;
font-weight:bold;
color:#ffffff;
background-color:#003399;
border-style:solid;
border:1px;
border-color:#999999;
margin:1px;
}
#menu dd{
display:none;
border-style:solid;
border-width:1px;
border-color:#999999;
}
#menu li {
text-align:center;
background-color:#CCCCCC;
}
#menu li a, #menu dt a {
color:#000000;
text-decoration:none;
display:block;
height:100%;
border-style:none;
border:none;
}
#menu li a:hover, #menu li a:focus, #menu dt a:hover, #menu dt a:focus {
background-color:#0099FF;
wodth:100%;
}
#site {
position:absolute;
z-index:1;
top:70px;
left:10px;
color:#CCCCCC;
background-color:#ddd;
padding:5px;
border-style:solid;
border-width:1px;
border-color:#CCCCCC;
}
/* css for the nav menu ends here */
</style>
</head>
<body>
<div id=”menu”>
<dl>
<dt onmouseover=”javascript:show();”><a href=”#” title=”Return to home”><font color=”#ffffff”>Home</font></a></dt>
</dl>
<dl>
<dt onmouseover=”javascript:show(‘smenu1’);” onmouseout=”javascript:show(‘smenu1’);”>About Us</dt>
<dd id=”smenu1″>
<li><a href=”#”>History</a></li>
<li><a href=”#”>Capabilities</a></li>
<li><a href=”#”>Projects</a></li>
</dd>
</dl>