From: Martin G. <gim...@gi...> - 2003-01-06 17:38:22
|
"Ted Vinke" <te...@jo...> writes: > I've been trying to put in a cell the NOWRAP attribute. So far I've > only been succesfull, with: > > HTML::td(array("nowrap" => 0), $text); > > Is there any other way to use nowrap or do I have to use my first > solution, which probably isn't HTML4 compliant? You can do as Carsten suggests to get proper (X)HTML code, but you could also use HTML::td(array("style" => "white-space: nowrap"), $text); instead - the nowrap attribute is deprecated in favor of using style sheets like the code above. See http://www.w3.org/TR/html4/struct/tables.html#adef-nowrap and http://www.w3.org/TR/REC-CSS2/text.html#propdef-white-space -- Martin Geisler My GnuPG Key: 0xF7F6B57B See http://gimpster.com/ and http://phpweather.net/ for: PHP Weather => Shows the current weather on your webpage and PHP Shell => A telnet-connection (almost :-) in a PHP page. |