0

広告を保持してページの右側に表示される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>
4

2 に答える 2

5

Add display:inline css for the table!

于 2015-06-12T13:06:26.380 に答える
1

テーブルを別の div で囲み、最初の div で clear プロパティを使用します

于 2012-04-26T13:33:05.057 に答える