css float - IE7: floating divs clearing text -


i have div containing multiple divs , text. inner divs alternately floated left , right , text flows along side them in browsers (including ie8) except ie7. in ie7 text pushed bottom aligned top of final inner div. have tried sorts of solutions , have read a article on subject

however, i'm still unable prevent text being cleared in ie7. here's relavent html (please note div nested within html table specified width legacy site. have tried pulling div out of table, same behaviour occurs anyway):

<div>     <div class="left"></div>     <div class="right"></div>     text goes here     <br />     text goes here </div> 

and css:

.left { float:left; } .right { float: right;} 

i have tried applying display:inline, display: inline-block, clear: none, overflow: hidden, specifying widths, position: relative containing div, various hacks such ie7 conditional zoom: 1, min-width: 1% - hours of pulling hair out , dredging google answers haven't found works. has encountered problem before , got fix it?

(for testing running ie8 in compatability mode in vista)

i sure of headaches ie7 brings. thank god better ie6, headache me in many situations.

in case recommend generate ie7 specific code using tables!


Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

html - Instapaper-like algorithm -

c# - How to execute a particular part of code asynchronously in a class -