I have the following page (which is reduced and modified from ASP.NET MVC default project):
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>test</title>
<style type="text/css">
body
{
background-color: #fff;
font-size: 62.5%;
margin: 0;
padding: 0;
}
.page
{
width: 90%;
margin-left: auto;
margin-right: auto;
}
#header
{
position: relative;
padding: 0;
}
#header h1
{
font-weight: bold;
padding: 5px 0;
margin: 0;
color: #000;
border: none;
line-height: 2em;
}
/* TAB MENU
----------------------------------------------------------*/
#menu
{
clear: both;
width: 100%;
float: left;
margin: 0;
padding: 0;
}
#menu *
{
margin: 0;
padding: 0;
}
#menu ul
{
list-style: none;
width: 12em;
float: left;
}
#menu li
{
position: relative;
background-color: #fff;
border: solid 1px #fff;
}
div#title
{
display: block;
float: left;
text-align: left;
}
</style>
</head>
<body>
<div class="page">
<div id="header">
<div id="title">
<h1>
test</h1>
</div>
<br />
<div id="menu">
<ul>
<li><a href="#">Menu1</a></li>
</ul>
<ul>
<li><a href="#">Menu2</a></li>
</ul>
<ul>
<li><a href="#">Menu3</a></li>
</ul>
<ul>
</ul>
</div>
</div>
</div>
</body>
</html>
When I view it in FireFox, the list in #menu
div shows up aligned with the header above flush against the left edge of .page
div.
However, in IE6, the list inside #menu
is indented. I have a suspicion that it's margin-left: auto
that's being inherited by the list element.
How do I fix it so that the list is flush up against the left edge of the #menu
div?