Forum Moderators: not2easy
<div style="margin-left:100px">
<div style="clear:both;">
<div style="float:left;position:absolute">Testing</div>
<div style="margin-left:100px;">Testing<br>red<br>red<br>red<br>red<br>red</div>
</div>
<div style="clear:both;">
<div style="float:left;position:absolute">ccccx</div>
<div style="margin-left:100px;">Testing<br>red<br>red<br>red<br>red<br>red</div>
</div>
</div>
I'm not quite sure what you're trying to acheive.. which effect ..etc.. but right away I noticed a few problems with your code above. -- you've got a start tag with no end and an end tag with no start.. so IE is probably ignoring it and mozilla is probably getting confused .. that's my first guess
<div style="margin-left:100px">
<div style="clear:both;">
<div style="float:left;position:absolute">Testing</div><div style="margin-left:100px;">Testing<br>red<br>red<br>red<br>red<br>red</div>
</div> <!--this is a end tag with no beginning-->
<div style="clear:both;"> <!--this is a beginning tag with no with no end-->
<div style="float:left;position:absolute">ccccx</div>
<div style="margin-left:100px;">Testing<br>red<br>red<br>red<br>red<br>red</div>
</div>
</div>
But, if you are trying to make 2 colums - one that is 100 px from the left with a red background and one that is 100px to the left of that without a red background, this seems to work well for me cross browser.
<div style="margin-left:100px;">
<div style="float:left; background-color:red;">
<p>Testing</p>
<p> ccccx <br />red<br />red<br />red<br />red<br />red<br />red<br /></</p>
</div>
<div style="margin-left:100px;">
<p>Testingp>
</div>
</div>
You've got a lot of <div>s in the example you posted and it's hard to see what you're trying to do.