S
Sam Takoy
Hi,
In the following code, I want the table to appear side by side with the
red div, and to stretch to fill the available space within the green
div. But, in all browsers, the table goes underneath the red div? What's
the proper fix, other than to specify the width on the table, which I
don't want to do? Thanks! Sam
<div style="width: 300px; background: green;">
<div style="height: 100px; width: 100px; background: red; float:
left;"></div>
<table style="width: 100%; background: yellow; float:
left;"><tr><td>Hi</td></tr></table>
<div style="clear: both;"></div>
</div>
In the following code, I want the table to appear side by side with the
red div, and to stretch to fill the available space within the green
div. But, in all browsers, the table goes underneath the red div? What's
the proper fix, other than to specify the width on the table, which I
don't want to do? Thanks! Sam
<div style="width: 300px; background: green;">
<div style="height: 100px; width: 100px; background: red; float:
left;"></div>
<table style="width: 100%; background: yellow; float:
left;"><tr><td>Hi</td></tr></table>
<div style="clear: both;"></div>
</div>