S
sellmerfud
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>
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>