Tue, 2011-11-29 18:10
I am noticing a difference between IE8 and Firefox with this code.
<h1>a</h1> <div> <div style="float:left;">wwwwwwww</div> <div style="clear:both;">mmmmmmmm</div> </div>
IE8 Output is -
a
wwwwwww
wmmmmmmmm
whereas Firefox is doing what I would expect -
a
wwwwwww
wmmmmmmmm
I can cure this by using margin-top:-20px inn the div, taking out the <h1>
tag or even more bizarrely, putting
between the </h1>
and the first <div>
Does anyone know what I am missing here or simply doing wrong.
Many thanks.
John
//mod edit: bbcode added. Please read the how to post stickies ~gt