Non-breaking 2-em dash
June 5, 2009 7:26 AM
Subscribe
How can I use non-breaking 2-em dashes using HTML or CSS?
For example, I'd like to write "R——" and not have that broken up by a line.
It seems I could use the "nobr" tag, although it appears it's not encouraged.
I've been led to believe the 2-em dash is precisely that: two em-dashes. Unless there's a single character I could use?
I should mention I'm just beginning to learn CSS, so if the answer is obvious, my most humble apologies.
posted by Busoni to technology (5 comments total)
3 users marked this as a favorite
<span style="white-space: nowrap;">R——</span>That should work.
posted by DrJohnEvans at 7:38 AM on June 5