non-breakable hyphen

Discussion in 'HTML' started by Gilbert Saint-Flour, May 17, 2004.

  1. Hello:

    How can I prevent a string of characters which contains a hyphen (e.g.
    ABCDEF-GH) from being split when it is displayed at the end of a line and
    there isn't enough room for it? I know <nobr>ABCDEF-GH</nobr> will do the
    trick, but is there another solution ?

    Thanks.
     
    Gilbert Saint-Flour, May 17, 2004
    #1
    1. Advertising

  2. Gilbert Saint-Flour

    PeterMcC Guest

    Gilbert Saint-Flour wrote in
    <>

    > Hello:


    Hi

    > How can I prevent a string of characters which contains a hyphen (e.g.
    > ABCDEF-GH) from being split when it is displayed at the end of a line
    > and there isn't enough room for it? I know <nobr>ABCDEF-GH</nobr>
    > will do the trick, but is there another solution ?


    ‑ may help.

    --
    PeterMcC
    If you feel that any of the above is incorrect,
    inappropriate or offensive in any way,
    please ignore it and accept my apologies.
     
    PeterMcC, May 17, 2004
    #2
    1. Advertising

  3. Gilbert Saint-Flour wrote:

    >
    > How can I prevent a string of characters which contains a hyphen (e.g.
    > ABCDEF-GH) from being split when it is displayed at the end of a line
    > and there isn't enough room for it? I know <nobr>ABCDEF-GH</nobr>
    > will do the trick, but is there another solution ?



    May be a start...
    http://www.cs.tut.fi/~jkorpela/html/nobr.html

    --
    Google Blogoscoped
    http://blog.outer-court.com
     
    Philipp Lenssen, May 17, 2004
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. mm
    Replies:
    1
    Views:
    6,150
  2. KellyJ
    Replies:
    0
    Views:
    463
    KellyJ
    Jul 7, 2006
  3. Joe Stateson
    Replies:
    3
    Views:
    432
    Joe Stateson
    Oct 25, 2007
  4. Prasad
    Replies:
    6
    Views:
    478
    Joe Kesselman
    Oct 31, 2007
  5. Hal Vaughan
    Replies:
    2
    Views:
    99
    Hal Vaughan
    Dec 11, 2003
Loading...

Share This Page