[WEB4LIB] defining HTML line-break points?

Kevin W. Bishop bishopk at rpi.edu
Mon Feb 4 12:17:19 EST 2002


In order to keep text/content from wrapping, try this:

<span class="nowrap"><a href="yoursite.html">Parents &amp; Visitors</a></span>

And define

.nowrap { white-space: nowrap; }

Keep in mind, this may also create a horizontal scroll-bar depending on how 
the user has set the width of the browser window.

Btw -- this should validate.

HTH,
-kb

At 08:12 AM 2/4/2002 -0800, Kenneth Irwin wrote:
>Hi folks,
>
>Does anyone know if it's possible in HTML to define preferred points for
>breaking a line -- something that a browser would interpret as "hey, if you
>have to wrap this line, break it <here>";
>
>Here's the instance I have in mind; at the bottom of our library page we
>have links to the other sections of the University web page, separated by
>pipes "|"
>
>| Wittenberg Home | Prospective Students | Wittenberg Students | Alumni &
>Friends | Parents & Visitors | Faculty & Staff |
>
>In some browsers/resolutions/fonts this shows up very nicely all in one
>line; in some it wraps. On *my* screen, it breaks at the ampersand in
>"Parents & Visitors"; I'd rather have it break a pipe where it has to break
>at all, but I'd rather not have it break when possible.
>
>Any ideas, or am i just too darn picky?
>
>Thanks
>Ken
>Ken Irwin                                               kirwin at wittenberg.edu
>Reference/Electronic Resources Librarian        (937) 327-7594
>Thomas Library, Wittenberg University

_________________________________________
Kevin W. Bishop
Communication & Collaboration Technologies
Rensselaer Polytechnic Institute
<bishopk at rpi.edu> | <http://www.rpi.edu/rpinfo/>



More information about the Web4lib mailing list