At 4:23 PM +0100 2/17/10, Benct Philip Jonsson wrote:

>On-topically: the only way to emulate double spaces with CSS
>which I can think of would be to wrap every sentence in a
><span class="sentence"> and style that with a 2em right padding.
>Any other?

    That would work, though I think 2em would probably be too wide in 
proportional fonts.  My guess is that something more like 1em or 
1.25em would be closer to the intended effect.
    In theory, you could make this happen without any extra markup by declaring:

body {white-space: pre-wrap;}

    This would impose 'pre'-style whitespace honoring while also 
wrapping lines of text at the element boundaries.  The value 'pre' 
means that lines don't ever wrap.  See 
http://www.w3.org/TR/CSS2/text.html#white-space-prop for more.
    This would not have the intended effect in all browsers, since 
many don't support 'pre-wrap',  It would, however, enhance(*) the 
presentation in those browsers that do understand 'pre-wrap', add 
that enhancement to browsers that come to understand it in the 
future, and not break anything in browsers that don't currently 
understand it.


(*) I mean "enhance" in the "progressive enhancement" sense, meaning 
that this CSS will create additional effects in advanced browsers 
while not making the site inaccessible or broken in non-advanced 
browsers.  I'm not trying to editorialize about which number of 
spaces after a sentence is better, even though I have my own fairly 
strong opinions on the matter, as such editorials are way off topic.

-- 
Eric A. Meyer (http://meyerweb.com/eric/), List Chaperone
"CSS is much too interesting and elegant to be not taken seriously."
   -- Martina Kosloff (http://mako4css.com/)
______________________________________________________________________
css-discuss [[email protected]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to