On 15 Feb 2009 Paul Vigay wrote:

> In article <[email protected]>,
>    Richard Porter <[email protected]> wrote:
>> How do you stop a line wrapping inside a table cell, short of inserting
>> an invisible image that's longer than the line of text?

> Have you tried giving the table cell a fixed width? Or defining a style
> with a fixed width (something like style="width: 300px;")?

No, because I want the page to format to the window size, and if I 
wen't down that route I'd also have to specify the font instead of 
using the browser default settings.

Actually part of the problem may be that I've specified conflicting 
requirements, namely that the table width is 90% of the window width 
so I can't have it both ways. The inconsistency is that if I put a 
long unbroken text string in the cell it will override the table and 
window width even if it contains non-breaking spaces.

>> I've tried replacing all the spaces with &nbsp; but that doesn't work.
>> Neither does <nobr> or <td nowrap>. NS always seems to split the line.
>> It even splits at an &nbsp; when I give it a space in the middle to
>> break at!

> If you specifically want to break in the middle, I think you'd need to
> insert a <br> in place of the space you've given it in the middle.

I don't want a break if there's room without it, but if the line does 
split I'd rather it split where there's a space and not where there's 
a non-breaking space. I think this is the same problem I've reported 
before because there's a tag next to the non-breaking space and NS 
will split a line at a tag regardless.

-- 
 _
|_|. _   Richard Porter               http://www.minijem.plus.com/
|\_||_                                mailto:[email protected]
Disclaimer: Please imagine about 50 lines of pointless clutter.

Reply via email to