No replies
z8000783
z8000783's picture
Offline
newbie
Last seen: 2 years 47 weeks ago
Joined: 2011-11-29
Posts: 1
Points: 2

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 &nbsp; 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