Forum Moderators: open

Message Too Old, No Replies

valid <nobr> equivalent -?

         

kalinkafx12

1:57 am on Mar 4, 2007 (gmt 0)

10+ Year Member



Is there a way to keep a line of text in a <td> from breaking up? I am aware of the <nobr> but isnt that only supported by IE, and in any case is heading for a total deprecation in the end. Thanks

SuzyUK

10:57 am on Mar 4, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



use a bit of CSS.

<span style="white-space: nowrap">

it needn't be a <span> of course if the line of text is already inside a <p> attach it to that or if you want it to apply to the whole cell you attach it to the <td>

g1smd

11:14 am on Mar 9, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I once deleted more than 2000 <nobr> tags from a page produced by Microsoft FrontPage and replaced them with 3 simple lines of CSS.

Talk about code bloat gone mad!