I can't figure this out...
I'm trying to make a navigation with lists, but i cant get it to display correctly.
The nav bar looks the way i WANT it to look in FF, but in IE it looks the way i EXPECTED it to look with the code. and expression web doesn't look like either (so, I'm constantly previewing).
The main problem is that the divs in FF are overlapping and i can't figure out why, HELP?
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>ch4sethe5un</title>
<style type="text/css">
html, body{
margin:0;
padding:0;
}
#navcontainer{
width: 800px;
height: 30px;
}
#navcontainer ul
{
padding-left: 0;
margin-left: 0;
background-color:#000;
float: left;
font-family: arial, helvetica, sans-serif;
}
#navcontainer ul li { display: inline; }
#navcontainer ul li a
{
color: White;
text-decoration: none;
float: left;
text-align: center;
width: 160px;
height: 30px;
padding-top: 5px;
}
#navcontainer ul li a:hover
{
background-color: #0066CC;
color: #fff;
height: 30px;
}
#dirHeader{
background-color: #0099CC;
height: 30px;
width: 800px;
}
</style>
</head>
<body>
<div id="wrapper">
<div id="navcontainer">
<ul id="navlist">
<li><a href="#">Item one</a></li>
<li><a href="#">Item two</a></li>
<li><a href="#">Item three</a></li>
<li><a href="#">Item four</a></li>
<li><a href="#">Item five</a></li>
</ul>
</div>
<div id="dirHeader">
</div>
</div>
</body>
</html>