Reply to Re: <td width=...> in IE

Your name:

Reply:


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/

[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

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