Reply to IE and fixed columns, help

Your name:

Reply:


Posted by sellmerfud on 12/11/06 23:30

I am trying to create a table where the first row has two columns.
I want the first column to be of fixed width and the second column to
stretch to fit the rest
of the table width.

In the subsequent rows, there will a single column colspan="2" and this
column
will be wider than the first column in the first row.

In Firefox all works as planned. In IE, however, the first column in
the first row is not
fixed to the width that I specify. It is as if IE is ignoring the
width attribute.
(I have tried using width="512", style="width:512", and <col
width="512"> and IE
blissfully ignores them all.

Does anyone know how I can achieve this?
Thanks, Curt

Here is example code:

<TABLE cellpadding="0" cellspacing="0" border="1" >
<colgroup><col width="512"><col></colgroup>
<TR>
<TD>
blah blah blah blah blah blah
</TD>
<TD align="left" nowrap>Upper Right content</TD>
</TR>
<TR>
<TD colspan="2">
<TABLE cellspacing="0" cellpadding="0">
<TR>
<TD nowrap>blah blah blah blah blah blah blah blah</TD>
<TD nowrap>blah blah blah blah blah blah blah blah</TD>
<TD nowrap>blah blah blah blah blah blah blah blah</TD>
<TD nowrap>blah blah blah blah blah blah blah blah</TD>
</TR>
</TABLE>
</TD>
</TR>
</TABLE>

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация