My layout consists of a div and a table displayed side-by-side:
<div style="float:right ...">Contents</div>
<table>contents</table>
I am looking for a solution to make the div move below the table when there is not enough space to display them side-by-side. Currently, they just overlap.
UPDATE:
Since this is a template, I want to refrain from hardcoding any widths into the layout. Both the div and table should resize based on their contents before deciding their placement - either side-by-side or with the table above the div. Essentially, I am seeking a CSS property similar to
min-width: <content width request>
.