Change style of you left div
to:
<div id="left" style="margin-right:500px"></div>
This will make sure that content won't flow under the right floating div
when content in the left one takes more vertical space than content in the right one.
Important
Don't forget to put the floated div
in front of the unfloated one. So put your right one first in the markup and then the left one.
Solution to your particular problem
So you have two div
elements
<div id="endants-content">
<div id="screenshot-preview">...</div>
<div id="endants-main-content">...</div>
</div>
And CSS should be like this to make it work as expected:
div#endants-content
{
/* put min-width here is you need it */
}
div#screenshot-preview
{
float:right;
width:30%;
}
div#endants-main-content
{
margin-right:30%;
overflow:auto;
}