Hi all, I have an interesting issue with IE8.
I am having the following problem; my 'pageholder' div keeps collapsing up to my top navigation... but only in IE8 - IE7and Firefox work OK.
The following is the code being used:
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>Untitled Document</title>
<style type="text/css">
body {
font-family: "Trebuchet MS";
font-size: 80%;
color: #000000;
text-decoration: none;
margin: 0px;
}
#pageholder {
width: 900px;
margin-right: auto;
margin-left: auto;
background-color: #CCCCCC;
height: 1%;
}
#banner {
width: 898px;
height: 200px;
border: 1px solid #000000;
}
#topnav {
width: 898px;
height: 30px;
border: 1px solid #000000;
}
#leftcol {
width: 600px;
height: auto;
float: left;
border: 1px solid #000000;
}
#rightcol {
width: 200px;
height: auto;
float: right;
border: 1px solid #000000;
}
.clear {
display: block;
clear: both;
}
</style>
</head>
<body>
<div id="pageholder">
<div id="banner"></div>
<div id="topnav"></div>
<div id="leftcol">
a<br />a<br />a<br />a<br />a<br />a<br />a<br />a<br />a<br />a<br />a<br />a<br />a<br />a<br />a<br />a<br />a<br />a<br />a<br />a<br />
</div>
<div id="rightcol">
a<br />a<br />a<br />a<br />a<br />a<br />a<br />a<br />a<br />a<br />a<br />a<br />a<br />a<br />
</div>
<br class="clear" />
</div>
</body>
</html>
As you can see from the below image, the pageholder is not recognising either of the floated divs. I cannot apply a set height to these divs as the content varies throughout the site.
Any help/advice would be appreciated :-)

|