|
Posted by Jukka K. Korpela on 10/23/07 08:05
Scripsit jodleren:
> I have problems with the following code in IE, but it works well in
> Firefix.
>
> <table border=1>
> <tr>
> <td>a b</td>
> <td width=25>c</td>
> </tr>
> <tr>
> <td colspan=2>The red fox jumped over the lazy dog</td>
> </tr>
> </table>
In a <td> element, the width attribute specifies (by HTML specs) the
suggested minimum width, so both IE and Firefox behave by the specs, just
differentöy.
> Idea: the top row, cell 1 - as wide as possible, cell 2, specified
> width - (or as short as possbile if that can help. Setting cell one
> just to take up all remaining space is ok too)
> IE cannot handle this. Any suggestions?
Use <table style="table-layout: fixed">. This effectively sets, as a side
effect, the total width of the table to 100%, but this seems to be what you
want.
--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/
Navigation:
[Reply to this message]
|