Scripsit Steve Pugh:
Spacing is a presentation issue and hence is handled by CSS not by
HTML.
Indeed. But you may need extra HTML markup in order to be able to set
the spacing in CSS.
See
http://www.w3.org/TR/CSS21/text.html#spacing-props for the
letter-spacing and word-spacing properties.
Specifically, letter-spacing is what corresponds to the MS Word setting
described above. Note that despite its name, it affects all characters,
not just letters. When set for text containing word spaces, it is
usually a good idea to set word-spacing too.
Generally, setting the _overall_ letter spacing is a bad idea - or, to
put it somewhat extremistically, an insult to font designers. A font
designer has carefully set the spacing, and then comes some wannabe
author who thinks he knows better.
Setting it _locally_, often very locally, might be a good idea, since
some character combinations result in apparent gaps. But then you would
need extra markup, typically <span>, writing e.g.
<span style="letter-spacing:-0.05em">Wa</span>tt
instead of just
Watt
And this is rather awkward - and risky, since you really don't know how
it will look like in different browsing situations.
Worse still, browsers disagree on the interpretation whether this should
increase just the spacing between "W" and "a" or after the "a" as well.
Thus, in very local adjustments like this, it's probably better to set a
negative left margin for a single character, e.g.
W<span style="margin-left:-0.05em">a</span>tt
But this pays off in special situations only, e.g. in headings that
would otherwise suffer from poor spacing for some character
combinations. (In text processing, you can deal with such issues by
turning on the kerning option. In CSS, you cannot, since CSS has no such
option at present.)
More info, including some examples:
http://www.cs.tut.fi/~jkorpela/www/letter-spacing.html