HighDots Forums  

non breaking dash

alt.html alt.html


Discuss non breaking dash in the alt.html forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Jens Müller
 
Posts: n/a

Default non breaking dash - 09-06-2006 , 04:05 AM






Hello,

I want to prevent that a word like "Company-Name" is broken at the end
of the line at the "-".
With spaces, I would use "nbsp", but how to do this with a dash?

Thanks!


Reply With Quote
  #2  
Old   
Bobbo
 
Posts: n/a

Default Re: non breaking dash - 09-06-2006 , 07:37 AM







Jens Müller wrote:
Quote:
I want to prevent that a word like "Company-Name" is broken at the end
of the line at the "-".
Try ‑

e.g.
Badger‑Botherer

Although that may have some restrictions based on what encoding you're
using - can anyone else advise?



Reply With Quote
  #3  
Old   
Ed Mullen
 
Posts: n/a

Default Re: non breaking dash - 09-06-2006 , 01:13 PM



Bobbo wrote:
Quote:
Jens Müller wrote:
I want to prevent that a word like "Company-Name" is broken at the end
of the line at the "-".

Try ‑

e.g.
Badger‑Botherer

Although that may have some restrictions based on what encoding you're
using - can anyone else advise?

http://www.google.com/search?query=n...%20html&num=50

--
Ed Mullen
http://edmullen.net
http://mozilla.edmullen.net
http://abington.edmullen.net
All I ask is a chance to prove that money can't make me happy.


Reply With Quote
  #4  
Old   
Jens Müller
 
Posts: n/a

Default Re: non breaking dash - 09-07-2006 , 05:05 AM



Quote:
Try ‑
Thanks!



Reply With Quote
  #5  
Old   
Jukka K. Korpela
 
Posts: n/a

Default Re: non breaking dash - 09-07-2006 , 05:09 PM



Bobbo <robinw77 (AT) gmail (DOT) com> scripsit:

Quote:
Try ‑
That's non-breaking hyphen. It's probably what the OP really _meant_,
though. But it doesn't really work, due to browser limitations.

The practical approach is to use the nonstandard <nobr> markup around the
string that should not be broken across lines, as in
<nobr>Company-Name</nobr>
For more info, see
http://www.cs.tut.fi/~jkorpela/html/nobr.html

Quote:
Although that may have some restrictions based on what encoding you're
using - can anyone else advise?
The encoding has nothing to do with that. The meaning of ‑ is
completely independent on the encoding of the page.

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/



Reply With Quote
  #6  
Old   
Bobbo
 
Posts: n/a

Default Re: non breaking dash - 09-11-2006 , 04:47 AM




Jukka K. Korpela wrote:

Quote:
The practical approach is to use the nonstandard <nobr> markup around the
string that should not be broken across lines, as in
nobr>Company-Name</nobr
For more info, see
http://www.cs.tut.fi/~jkorpela/html/nobr.html

The encoding has nothing to do with that. The meaning of ‑ is
completely independent on the encoding of the page.
Thanks for pointing that out, that's more useful than a list of search
results.



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.