style float:left create problem

Permalink
Hi sir,
Once again the problem is when i m using

style="float:left" the sidebar is not coming with editable area and with grey box.I did it with the css but same problem is coming please reply soon.Thank's

<div style="float:left">
<?php

$as = new Area('Sidebar');
$as->display($c);
?>
</div>

 
aeroclown replied on at Permalink Reply
aeroclown
I am pretty sure you can't just float something. You need to set a width on the box you are floating in order for a float to work correctly in most cases. You also need to add overflow: hidden to the contain box in order for it to expand correctly or you can clear the contain division.

http://www.positioniseverything.net/easyclearing.html...

http://orderedlist.com/articles/clearing-floats-the-fne-method...

http://haslayout.net/

http://www.positioniseverything.net/...

http://www.alistapart.com