Forum Moderators: not2easy
Here is general css and html:
CSS:
#coltest {
background:url(images/index_11.gif);
background-position:top;
width:780px;
height:100%;
min-height:100%;
}
#leftcol {
width:300px;
margin-right:30px;
margin-left:20px;
float:left;
height:auto;
}
#rightcol {
margin-left:20px;
margin-right:20px;
width:390px;
float:right;
height:100%
}
HTML:
<div id="coltest">
<div id="leftcol">
<p>Lorem ipsum dolor sit amet, consectetuers</p>
</div>
<div id="rightcol">
<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Vivamus molestie tellus ac magna. Duis et lectus. Nunc ut massa. Aenean a leo nec velit dictum pulvinar. Morbi commodo elit ac ipsum. Etiam tortor. Etiam nec sapien sit amet quam volutpat iaculis. Vivamus aliquet nunc nec lorem. Ut semper orci non nisi. Morbi eu dui condimentum lacus mollis sagittis. Phasellus leo nibh, sagittis quis, lacinia ut, molestie et, tellus. Vivamus sodales. Suspendisse consequat felis fermentum turpis.</p>
</div>
</div>
I've tried lots of different things and it only seems to work in either IE or Firefox, but not both. I know that I'm missing something really simple, but can't make it work. Maybe I should lay off the cold medicine.
with HTML add a clearing element just before the containers closing </div> tag, or if you're going to be putting a footer underneath the columns put it inside the container and it should become a natural clearing aid..
- IE is doing it by default with the code you have here because the width, height, and min-height on #coltest are all triggering haslayout to true which it what it uses.
Suzy