css - IE not clearing subsequent floats -


I'm trying to float two divs on the opposite side of the page, with the text flowing between them (second The top div of the left-alliance should also be under the first (right-aligned) div. The code below works fine in FF, Chrome, Opera etc, but it does not properly clear in IE. Both divs appear at the top of the text.

If I move the left-aligned div very less within the text, it works fine in IE, but this is not really a permanent solution.

P> I have found several pages on the IE CSS float bug, but I have not got anything directly on this.

CSS

  Div {width: 200px; Margin-top: 10px; Border-style: solid; Border width: 1px; Status: Relative; }. Wiper {width: 600px; Border color: # FF0000; } .right {float: right; Border color: # 00FF00; }. Left {float: left; Clean both; Border color: # 0000FF; }  

HTML:

  & lt ;! DOCTYPE html public "- // W3C // DTD HTML 4.01 /" "http://www.w3.org/TR/html4/strict.dtd"> & Lt; Html & gt; & Lt; Top & gt; & Lt; Link rel = "stylesheet" href = "float.css" /> & Lt; / Head & gt; & Lt; Body & gt; & Lt; Div class = "wrapper" & gt; & Lt; Div class = "right" & gt; Advertise on this website For the current time Vivamus mi risus, Dipibus AC, Picture Quoices, Pilgrask Eaget, Same & Lt; / Div & gt; & Lt; Div class = "left" & gt; Michael either please see Cras rhoncus nisl accumsan trp in the Said lasnia Ligula Morbi How to do? Morbi Commodo Look & Lt; / Div & gt; & Lt; P & gt; Advertisement for advertising Vivamus mi risus, Dipibus AC, Picture Quoices, Pilgrask Ezekette, Sam Mikeens for a specific time, in any way, in any way, either the exclusive Hendridge Intermediate Oari ducts without Ultra Six Are ready for Anne Arch Purus, Roncus, Vestubulam Yal, Vault and Now, integer easst rhesus east purus viverra congue. & Lt; / P & gt; & Lt; P & gt; Regarding Android, as a sapphire or independence, Nolum Pulvinarer Orissi on Door SEGT and AC Elite, Thank you for contacting about Vivamas Laboratories Pillarsk Hiri Pine Laureet Masa AC METS Integer Fauzbus Laurim Moleste Nih Integer ID Masta Integer number, Piridis ID, Interdutum et, Preetium EZIT, ORCI Michael Litre. & Lt; / P & gt; & Lt; / Div & gt; & Lt; / Body & gt; & Lt; / Html & gt;  

There are elements in IE 7 and IE6 which have float and clear on them. In IE 7, the element containing float by using clear only clears the float in the same direction below the other float.

A modified version of the fix can be a trick, but do not get your hopes to see this page for details.

The bottom line is that you probably are not going to work in IE 6/7 without fraud: moving the div down into text, embedding the divisions in the paragraphs, etc.


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -