Previous Message
Next Message

My, thats a wide table!

Sent by Zoe M. Gillenwater on 23 September 2004 13:01


Oliver Hodgson wrote:

>Hi all,
>
>Can anybody think why the following code would make the table stretch to become about a squillion
pixels wide in IE5.5? As soon as I take the iframe out of the table, it is fine. I need the table to
stop the iframe getting too small in IE browsers though (seeing as they don't support min-width).
>
><table width="98%" class="iframespacer">
><tr>
><td>
><iframe width="100%" height="2500" scrolling="auto" frameborder="0" id="mainPage" name="mainPage">
></iframe>
></td>
></tr>
><tr>
><td><img src="/Private/styles/sesamegold/images/nav/spacer1.gif" alt="" style="width: 650px;
height: 1px; visibility: hidden;" /></td>
></tr>	
></table>
>
>The CSS associcated with it is:
>
>table.iframespacer, table.iframepsacer tr, table.iframespacer td {
>	margin: 0 !important;
>	padding: 0 !important;
>	border: none !important;
>	border-collapse: collapse !important;
>}
>  
>

Well, the parent of the iframe, the td, doesn't have a width.  That'd be 
the first thing I'd try.  Give the td an explicit width (98%, I guess).

Zoe

-- 
Zoe M. Gillenwater
Design Specialist
Highway Safety Research Center
http://www.hsrc.unc.edu

______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Previous Message
Next Message

Message thread: