José Miguel Hernandez wrote:
I was wondering if anyone knows of an appropriate way to increase or
decrease sentence-spacing - for which there is no property I can find
in the CSS2 spec. By this, I mean to simulate the effect of
double-spacing after a period, which some people in my company insist
on doing - even after reading the following informative article:

Singlespace vs. Double Space
http://www.webword.com/reports/period.html

First, the technical answer...
There is nothing in HTML or CSS that recognizes a sentence as a basic unit. Blocks, yes. Paragraphs, yes. Sentences, no. Without that basic level of parsing, the answer is going to be very difficult to implement. One -could- use the content: attribute to add an extra space, like this. (untested)


.sentence {
   content: " ";
   display: inline; }

Of course, this would mean wrappting every sentence in a <div> just to get the class attached.
ref: http://www.w3.org/TR/CSS21/generate.html#propdef-content


Then, an accessibility concern...
Those "rivers of white" represent a significant cognitive understanding problem for people with Meares-Irlen Syndrome (scotopic sensitivity). Stick with one space after a period.
--
Bob Easton
Accessibility Matters: http://access-matters.com


______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to