A 'non-breaking dash' please?

Thursday, 16 Oct 2008
Yesterday I got myself in a fight with a minus -. Browsers will regard a minus as an excellent opportunity to softbreak your content. So guess what happens if you want to squeeze a negative number (say -19,95) in a small table cell? It appears as
-
19,95
which is obviously not what was intended. We all know about the non-breaking space  , so I started to wonder: "Is there also a non-breaking dash?". Turns out I was actually looking for the "non-breaking hyphen":
‑
A universe of wonderful online typographic possibilites was revealed to me by this great article from A list Apart. It's a much bookmarked article, and I understand why: there is just a truly miraculous amount of alternatives for our common dashes, spaces and quotes.
Posted in: webdesign typography
Add comment

Comments (1)

05-05-2010, 14:50
Philipp
CSS:

td.cellThatWontSoftbrakeMyContent{
white-space:nowrap;
}

doesnt work ?