広告を保持してページの右側に表示されるdivを作成しようとしています。本体の表とテキストを広告の左側に配置し、広告が終了したらページの右側まで拡張したいと思います。
問題は、本体にテーブルがあり、divの左側に表示されないことです。その下に表示されます。これを修正するにはどうすればよいですか?
<p>
<div style="margin:5px; float:right;">
<img src="ad.jpg" height="600" width="160">
</div>
blah blah blah
<table width="100%">
<tr><td>dsf</td></tr>
</table>
the table because of the 100% appears below the div
for the ad.jpg instead of to the left of it
</p>