Gazza <news@[EMAIL PROTECTED]
> wrote:
> In answer to your problem, use the non-breaking space character entity
>
It's really just an entity reference that evaluates to a character
reference,
denoting a character. You could just as well use the no-break space
itself,
if you know the basics of character encoding issues on the Web (sadly
enough,
most authors don't).
On the other hand, by HTML specifications, the effect of using the
no-break
space, in rendering and otherwise, is _undefined_. Most browsers treat it
as
a non-collapsible non-shrinkable space character, but you have been
warned.
Besides, you didn't say _how_ to use it. Using "- - foo. Bar - -"
would (usually) cause a space to appear at the start of a line if a
browser
happens to insert a line break after the ".". Making both spaces non-
breaking, "- - foo. Bar - -" would prevent a line break between
sentences, and this would not be good typography.
So "- - foo. Bar - -" would probably be the most sensible way of
using
a no-break space.
The _logical_ approach would be to make each sentence an element,
<span class="s">Here is a sentence.</span>, and use CSS to add some right
padding to each sentence, like
..s { padding-right: 0.5em; }
--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html


|