[thelist] table-less?

Nik Schramm n at industriality.com
Tue May 28 04:47:01 CDT 2002


>>I don't know if this applies but this is how I keep a Url from
>>wrapping...just eliminate the spaces.
>><a href="anyfile.html">Any&nbsp;Time&amp;Any&nbsp;Place</a>

That seems like a lot of trouble, why not let CSS do the work for you ?

<a style="white-space:nowrap;" href="anyfile.html">Insert URL Text that
won't wrap no matter how long it is</a>

If you want to stop an entire navbar from wrapping, wrap it in a
container and style that:

<div style="white-space:nowrap;"><a href="file1.html">File 1</a> | <a
href="file2.html">File 2</a> | <a href="file3.html">File 3</a></div>

That works in most modern browsers, although possibly not in all. A
legacy HTML 2 alternative is to use the deprecated <nobr> tag, which
does the same thing:

<nobr><a href="anyfile.html">Insert URL Text that won't wrap no matter
how long it is</a></nobr>

or

<nobr><a href="file1.html">File 1</a> | <a href="file2.html">File 2</a>
| <a href="file3.html">File 3</a></nobr>

/nik

www.industriality.com - candy for the inner eye




More information about the thelist mailing list