To validate the HTML5 markup of this site, please use the more complete validator at html5.validator.nu.

CSS Wizardry The Three Types of Dash


[Content]

The Three Types of Dash

Unbeknown to many, there are three main many types of dash, and one of the most common typographical mistakes is to use the wrong dash for the wrong job. There are actually three several different types of dash and each have their own uses.

The em dash —

The em dash (—) — so named because it is the width of a capital ‘M’ — is used to delimit a separate clause in a sentence — rather like this — or similar sub-clause structures. Often used in its place however is the hyphen (-). Looking at the two side by side the difference is quite clear:

Proper em dashes:

The em dash (—), or m dash, m-rule, etc., often demarcates a parenthetical thought — like this one — or some similar interpolation.

Improper hyphens:

The em dash (—), or m dash, m-rule, etc., often demarcates a parenthetical thought - like this one - or some similar interpolation.

Spaces around em dashes

The proper setting of em dashes seems somewhat unclear. The ideal way to set them is with hair spaces ( ) either side — like this. However, IE6 doesn’t support the hair space leaving the options of either fully spaced — like this, or unspaced—like this.

Various means of spacing em dashes
Fully Spaced Hair Spaced Un Spaced
This — is an em — dash. This — is an em — dash. This—is an em—dash.

The en dash –

The en dash (–) — so named because it is half the width of a capital ‘M’ (an ‘n’) — has altogether different uses to the em dash. The en dash is used in ranges, for example:

Read more specific guidelines on Wikipedia.

The hyphen

The purpose of the hyphen (-) is to join two words — for example ‘front-end’ — and to separate syllables when splitting a long word over two lines. As previously mentioned, the hyphen is often misused in place of both the above.

The minus

There is also a seperate dash for the minus symbol. The proper entity for a minus symbol is simply −.

More reading

A reader of the old CSS Wizardry left me with a link to one of his own articles covering a few further variations of each.

Reader Comments:

“Nice, didn’t realise there was so much variety with a dash. Something I’ll bear in mind. Thanks.” liam

“I know what you mean Harry, You ARE a geek :D” Joe Whitley

“Nice Thanks” ket

“@liam: I was the same, but now I can spot an em dash at 20 paces.
@Joe: I know
@ket: You’re welcome.” Harry Roberts

“The language geek in me squealed in delight at this article.” m

“There’s far more than three dashes :)
http://garyjones.co.uk/development/hyphens (the majority of which is accredited to an article on A List Apart).” Gary

[Sub Content]

From the Toybox

Twitter

Resources

Web Design+ — Tips and advice on web standards development Web Design+ is a freely available one-stop document for developers to get advice and tips on web standards development.

Typogridphy — A Typographical and Grid Layout CSS Framework Typogridphy is a CSS framework constructed to allow web designers and front-end developers to quickly code typograhically pleasing grid layouts.

Clecktionary — Cleckheaton’s Dictionary Clecktionary is a tongue in cheek homage to my hometown Cleckheaton. It can be enjoyed by anyone, but is better appreciated by a Cleck’ native.