?
=?ISO-8859-1?Q?L=FCpher_Cypher?=
Hi,
I have a table like this:
<table cellspacing="0" cellpadding="0">
<tr>
<td style="padding:2px 4px 2px 4px;width:16px;">
<img src="..." style="width:16px;height:16px;" />
</td>
<td style="padding:2px 4px 2px 4px;border-left:1px solid #000000;">
Some text
</td>
</tr>
<tr>
<td colspan="2">
Some text
</td>
</tr>
</table>
From the code above I expect a table with 2 cells in the first row,
separated by a line, with the first one being 16px (or adjusted to fit
the image), and the second one takeing the rest of the width of the table.
Now, if I load that in Firefox/NS, it works fine, but in IE for some
reason the first cell stretches more than needs to be. I could set
table-layout:fixed and adjust width:20px, but then the table takes 100%
of available width, and I need its width to be adjusted to content in
the second row (if it's longer than the first row).
Anyone has ideas how to fix it in IE?
Thanks,
Lüph
I have a table like this:
<table cellspacing="0" cellpadding="0">
<tr>
<td style="padding:2px 4px 2px 4px;width:16px;">
<img src="..." style="width:16px;height:16px;" />
</td>
<td style="padding:2px 4px 2px 4px;border-left:1px solid #000000;">
Some text
</td>
</tr>
<tr>
<td colspan="2">
Some text
</td>
</tr>
</table>
From the code above I expect a table with 2 cells in the first row,
separated by a line, with the first one being 16px (or adjusted to fit
the image), and the second one takeing the rest of the width of the table.
Now, if I load that in Firefox/NS, it works fine, but in IE for some
reason the first cell stretches more than needs to be. I could set
table-layout:fixed and adjust width:20px, but then the table takes 100%
of available width, and I need its width to be adjusted to content in
the second row (if it's longer than the first row).
Anyone has ideas how to fix it in IE?
Thanks,
Lüph