What key concept am I missing here?
I am basically looking for a 2 column layout but as soon as I add the float to achieve the right column, the p elements no longer appear to be in the DIV
Thanks
Matt
btw- the content is dynamic so the height needs to be flexible
HTML Code:
<head>
<style type="text/css">
#box{
border: 1px solid red;
width:450px;
}
.col{
border:1px solid black;
width:49%;
}
</style>
</head
<body>
<div ID="box">
<p class="col" style="float:left">Column 1</p>
<p class="col" style="float:right">Column 2</p>
</div>
</body>