grabmail
10-17-2006, 10:04 AM
I tried
<div style="clear:both"></div>
But it did not work.
Here's my code
<div style="float:left;width:50%">One</div>
<div style="float:left;width:50%">Two</div>
<div style="clear:both"></div>
<div style="margin: 20px 0px 0px 0px">I am 20px below Two</div>
I expect an output like this:
One Two
I am 20px below Two
The above code works in Firefox and IE 6. But in Opera, the output is like this:
One Two
I am 20px below Two
Opera does not obey the margin code. Anyone knows any code that works in all 3 browsers? Curse opera! :mad:
<div style="clear:both"></div>
But it did not work.
Here's my code
<div style="float:left;width:50%">One</div>
<div style="float:left;width:50%">Two</div>
<div style="clear:both"></div>
<div style="margin: 20px 0px 0px 0px">I am 20px below Two</div>
I expect an output like this:
One Two
I am 20px below Two
The above code works in Firefox and IE 6. But in Opera, the output is like this:
One Two
I am 20px below Two
Opera does not obey the margin code. Anyone knows any code that works in all 3 browsers? Curse opera! :mad:
