Forum Moderators: not2easy
#main_body {
border: 1px solid #000000;
padding: 20px;
background: #ffffff;
}
#left_column {
position: absolute;
width: 150px;
}
#right_column {
margin-left: 180px;
}
###################
<div id="main_body">
<div id="left_column">text that overflows the boundaries of main_body if it gets too long...</div>
<div id="right_column">text that correctly causes the "main body" box to grow/shrink with it.</div>
</div>
You can try this - note the extra BR in the right_column DIV:
<STYLE>
#main_body {
border: 1px solid #000;
padding: 20px;
}
#left_column {
float: left;
width: 150px;
}
#right_column {
margin-left: 180px;
}
</STYLE>
<div id="main_body">
<div id="left_column">
text that overflows the boundaries of main_body if it gets too long...
</div>
<div id="right_column">
text that correctly causes the "main body" box to grow/shrink with it.
<BR clear="left">
</div>
</div>