Re: display: block - CSS block positioning
HTML Code:
<style type="text/css">
#left { float:left; width:100px; margin-right:10px; border:1px solid #000000;}
#right { float:left; width:100px; border:1px solid #000000; }
.clear { clear:both; }
</style>
<div id="left">left</div>
<div id="right">right</div>
<div class="clear"></div>
Back to normal.
That will stack the div's side by side, on one line. Then because the div's are floated they need to be cleared before going back to normal layout. Hope it helps.
Matt.
|