HighDots Forums  

IE - TABLE width=100% next to float hack breaks wrapping of normal text

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss IE - TABLE width=100% next to float hack breaks wrapping of normal text in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
mephraim@yahoo.com
 
Posts: n/a

Default IE - TABLE width=100% next to float hack breaks wrapping of normal text - 07-21-2006 , 05:36 PM






I have a page at (view in IE):

http://rmc2.dev.leepfrog.com/ie_fix_me/index.html

that has an image floated right outside of a main content div that
looks like:

<img src="blah" style="float: right; clear: right;>
<div class="schoolofcenter">

content here

</div>

I want a table with width=100% to be next to the floated image inseide
the content div and not clear beneath the image floated right. To
accomplish this, I used the follwoing IE hack:

/* Hide from IE5-mac. Only IE-win sees this. \*/

* html .schoolofcenter TABLE {
margin-left: 0px;
margin-right: -3px;
}
* html .schoolofcenter {
height: 1%;
}
/* End hide from IE5/mac */

It works on the page referenced above, but on other pages causes text
to clear below the floated image (see
http://rmc2.dev.leepfrog.com/ie_fix_me/index2.html). Of course, when I
remove the "height: 1%" from the hack, the second page looks fine (see
http://rmc2.dev.leepfrog.com/ie_fix_me/index2_alt.html) but the table
on the first page goes back to breaking beneat the image floated right
(see http://rmc2.dev.leepfrog.com/ie_fix_me/index_alt.html).

So, the question is, does anyone know how I can have a table with width
= 100% not break beneath the image and still have normal text wrap
beneath it?

Of course, it works just fine in FireFox. Thanks ahead of time for any
feedback.


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.