In the following example, the right side container appears to the right of the left side one in standards compliant browsers, but in IE6 the blue right side container appears below the left side one. IE6 effectively bumps it down because the parent container is narrower than the total width of the left and right side containers.
I have the following HTML:
<html>
<head>
<style>
#parentcntnr{
width: 900px;
border: 3px solid black;
}
#leftside{
width: 200px;
float: left;
background-color: red;
position: relative;
}
#rightside{
width: 800px;
background-color: blue;
margin-left: 210px;
}
</style>
</head>
<body>
<div id="parentcntnr">
<div id="leftside"> content </br>content </br>content </br>content </br>content </br>content </br>content </br>content </br> content </br>content </br>content </br>content </br>content </br>content </br>content </br>content </br>content </br></div>
<div id="rightside">content </br>content </br>content </br>content </br>content </br>content </br>content </br>content </br>content </br></div>
</div>
</body>
How do I make this render like it does in Firefox 3.5? I'd like the right and left side containers to remain side by side and a horizontal scroll bar to appear when the parent container is smaller than the total width of the child containers.
For the record: this is an example that exhibits a problem that I'm having on a website. The above behavior occurs when the browser window is sized so that it is narrower than the sum of the two child widths. This poses a problem for clients with low screen resolutions.