Your nav is spilling over in IE6 because you've got a nearly 5em padding on the links inside nav - which means 10em total for left and right. They are too wide to fit in the space you've defined for the page.
From what I can see, you don't have anything set to center the container. You need margin: 0 auto; to center #pagecontainer.
You have some syntax errors in your CSS.
IE6 does NOT support min/max width/height. You have to have a separate css file that you call with conditional comments that will contain ONLY the hacks needed to make IE6 behave. For IE6, you'll have to specify a height instead of max-height.
You should not use font sizing like x-small, small, medium - browsers don't all render the font sizing the same. You should also NOT specify font sizes with PX because IE6 users will not be able to resize the text if they want to.
This works:
Code:
body{
margin:0;
padding: 0;
}
#pagecontainer
{
width: 1024px;
/*margin-left: 20px;
margin-right: 20px;*/
margin: 0 auto;
background: #fff;
}
/*Navigation Bar Code Begins */
#nav ul
{
margin: 0;
padding: 0;
list-style-type: none;
height: 1.5em;
border: 1px solid red;
}
#nav ul li
{
display: inline;
padding: 0;
margin: 0;
float: left;
width: 10em;
text-align: center;
border: 1px solid black;
}
#nav ul li a:link
{
background: url(images/background.gif);
font: .80em normal "lucida grande", verdana, sans-serif;
text-decoration: none;
color: black;
/*padding: .2em 4.97em;*/
padding: .5em 0;
height: 1.5em;
}
#nav ul li a:hover
{
background: url(images/backgroundhover.gif);
font: .70em "lucida grande", verdana, sans-serif;
text-decoration: none;
color: black;
padding: .2em 0;
background: #e0ffff;
}
/*Navigation Bar Code Ends */
#content
{
font-family: helvetica, arial, sans-serif;
font-size: small;
border: 2px solid gray;
float: left;
width: 160px;
height: 300px;
position: relative;
margin-top: 3%;
padding: 1em;
}
#content h2
{
margin: 0;
padding: 0;
}
#pageimage
{
float: left;
position: relative;
margin-top: 4%;
margin-left: 3%;
height: 300px;
width; 720;
max-width: 36em;
}
#footer
{
clear: both;
float: left;
width: 930px;
position: relative;
margin-top: 2%;
padding: 0.5em;
text-align: center;
font-size: x-small;
background-color: #ddd;
border-top: 1px solid gray;
}
.brclear { /* Use a break with this class to clear float containers on both sides */
clear:both;
height:0;
margin:0;
font-size: 1px;
line-height: 0;
}
HTML - just add the clearing break to clear the floats:
Code:
<div id="nav">
<ul>
<li><a href="Home">Home</a></li>
<li><a href="About">About Us</a></li>
<li><a href="Properties">Properties</a></li>
<li><a href="Landgroup">Landgroup</a></li>
<li><a href="Foundation">Foundation</a></li>
<li><a href="Contact">Contact</a></li>
</ul>
<br class="brclear" />
</div>
Then here:
</div>
<br class="brclear" />
</body>
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!
"Using or working with IE is like having to wear a 1970's polyester suit with pantyhose and a girdle, to work everyday"
Carolina Corvette Club
|