Snef
10-17-2006, 03:19 AM
Hi,
i'm lost in the wolrd of floating divs ;)
<div style="width: 500px; background-color: #cccccc; overflow: auto;">
<div style="float: left; width: 200px; background-color: #eeeeee;">
div1
</div>
<div style="float: left; background-color: #dddddd;">
div2 div2 div2 div2 div2 div2 div2 div2 div2 div2 div2 div2 div2 div2 div2
</div>
</div>
In IE it seems to work (according to my ideas). The problem is in FF with DIV2.
I want to be able to float DIV2 next to DIV1 without setting a width for DIV2. But when using this approach, div will not wrap within the remaining 300px (in IE it does).
Is it possible to get the desired result? :confused:
i'm lost in the wolrd of floating divs ;)
<div style="width: 500px; background-color: #cccccc; overflow: auto;">
<div style="float: left; width: 200px; background-color: #eeeeee;">
div1
</div>
<div style="float: left; background-color: #dddddd;">
div2 div2 div2 div2 div2 div2 div2 div2 div2 div2 div2 div2 div2 div2 div2
</div>
</div>
In IE it seems to work (according to my ideas). The problem is in FF with DIV2.
I want to be able to float DIV2 next to DIV1 without setting a width for DIV2. But when using this approach, div will not wrap within the remaining 300px (in IE it does).
Is it possible to get the desired result? :confused: