tobyaw: (Default)
Toby Atkin-Wright ([personal profile] tobyaw) wrote2008-10-22 09:50 pm

Non-breaking hyphens

There are those of you out there who like to write ‘e-mail’ instead of email. Unfortunately this, and similarly hyphenated words, can produce some nasty line wrapping. The Unicode standard includes a non-breaking hyphen, 0x2011, but I understand that there may not be consistent browser and font support for this.

An alternative when writing for the web is to use CSS to mark the work in question as non-wrapping, such as <span style="white-space: nowrap;">e-mail</span>. It mark-up is a bit verbose, but it helps to stop lines ending with a nasty ‘e-’.
ggreig: (Rune)

[personal profile] ggreig 2008-10-22 10:36 pm (UTC)(link)
Noted - but pretty verbose right enough. Not sure how memorable it'll be.
kateaw: (Half lit Kate)

[personal profile] kateaw 2008-10-23 10:36 am (UTC)(link)
These non-breaking hymens, does that mean permanent virginity?