![]() |
|
|
|||||||
![]() |
HTML - Double space between sentences? |
|
|
Thread Tools | Search this Thread |
|
|
#1 |
|
I prefer the visual appearance of a double space between sentences. In
HTML, I get this effect by placing each sentence on its own line and eding it with , thus: The quick brown fox jumps over the lazy dog. The new line character following the provides the second space before the next sentence starts. This is, however, a STYLE thing, not CONTENT. In today's world it seems that I should just be typing the sentences with a single separating space and then applying an appropriate CSS sytle parameter like sentence-space: double. I don't see any way to do this in CSS2, nor do I see it over the horizon in CSS3. Have I missed something? Chris Beall Chris Beall |
|
|
|
|
#2 |
|
Posts: n/a
|
"Chris Beall" <> wrote in message news:BOGSa.2166 > > This is, however, a STYLE thing, not CONTENT. In today's world it seems > that I should just be typing the sentences with a single separating > space and then applying an appropriate CSS sytle parameter like > sentence-space: double. I don't see any way to do this in CSS2, nor do > I see it over the horizon in CSS3. I'm not sure if its in CSS3 but it should be! I've always wanted to do the same thing without resorting to presentational hacks in the HTML like adding Here's something you could try: p span {margin-right:1em;} <p><span>First sentence.</span><span>Second sentence.</span></p> I can't remember off the top of my head if margins can be applied inline elements or not?? Anyways, its still an ugly solution, and probably no better than just adding  ... MikeyC http://www.zeit.ca/ |
|
|
|
#3 |
|
Posts: n/a
|
Gazing into my crystal ball I observed "mike c" <> writing
in news:gXHSa.11622$ e.rogers.com: > > "Chris Beall" <> wrote in message > news:BOGSa.2166 >> >> This is, however, a STYLE thing, not CONTENT. In today's world it >> seems that I should just be typing the sentences with a single >> separating space and then applying an appropriate CSS sytle parameter >> like sentence-space: double. I don't see any way to do this in CSS2, >> nor do I see it over the horizon in CSS3. > > I'm not sure if its in CSS3 but it should be! I've always wanted to do > the same thing without resorting to presentational hacks in the HTML > like adding > > Here's something you could try: > > p span {margin-right:1em;} ><p><span>First sentence.</span><span>Second sentence.</span></p> > > I can't remember off the top of my head if margins can be applied > inline elements or not?? > > Anyways, its still an ugly solution, and probably no better than just > adding  ... > > MikeyC > http://www.zeit.ca/ > > Are you talking about this: the quick brown fox jumped over the lazy dog's back. the quick brown fox jumped over the lazy dog's back. the quick brown fox jumped over the lazy dog's back. As opposed to this? the quick brown fox jumped over the lazy dog's back. the quick brown fox jumped over the lazy dog's back. the quick brown fox jumped over the lazy dog's back. If so, line-height is the way to go: p {line-height:1.5em} - play with the value -- Adrienne Boswell Please respond to the group so others can share http://www.arbpen.com |
|
|
|
#4 |
|
Posts: n/a
|
Chris Beall wrote:
> I prefer the visual appearance of a double space between sentences. > In HTML, I get this effect by placing each sentence on its own line > and eding it with , thus: > The quick brown fox jumps over the lazy dog. > The new line character following the provides the second space > before the next sentence starts. > > This is, however, a STYLE thing, not CONTENT. In today's world it > seems that I should just be typing the sentences with a single > separating space and then applying an appropriate CSS sytle parameter > like sentence-space: double. I don't see any way to do this in CSS2, > nor do I see it over the horizon in CSS3. > > Have I missed something? > > Chris Beall Well, I think it would be nice to have a selector that will be something like the ":before" or ":after" psuedo elements. So, something like this...... this would replace the "." with something like ". "... p {char-replacement:"." ". "} or p {char-replacement:"." ". . ";} or something that would be reprsentitive of whatever you want... such as..... p {char-replacement:"." uri(../images/blah.gif);} if it could also be made to assign other classes to the character found...this would also be useful for things such as highlighting 'searched for' words such as... p {char-find-replace-with:"elephant" class(highlightcontext)} ..... this would find the word "elephant", and apply the style from the class "highlightecontext" to it. maybe? or not? |
|
|
|
#5 |
|
Posts: n/a
|
Adrienne <Xns93BEC648F4FDDarbpenyahoocom@207.115.63.162> wrote in alt.html:
> Gazing into my crystal ball I observed "mike c" <> writing > in news:gXHSa.11622$ e.rogers.com: >> "Chris Beall" <> wrote in message >> news:BOGSa.2166 >>> This is, however, a STYLE thing, not CONTENT. In today's world it >>> seems that I should just be typing the sentences with a single >>> separating space and then applying an appropriate CSS sytle parameter >>> like sentence-space: double. I don't see any way to do this in CSS2, >>> nor do I see it over the horizon in CSS3. >> I'm not sure if its in CSS3 but it should be! I've always wanted to do >> the same thing without resorting to presentational hacks in the HTML >> like adding > Are you talking about this: > the quick brown fox jumped over the lazy dog's back. > the quick brown fox jumped over the lazy dog's back. > the quick brown fox jumped over the lazy dog's back. > > As opposed to this? > the quick brown fox jumped over the lazy dog's back. > > the quick brown fox jumped over the lazy dog's back. > > the quick brown fox jumped over the lazy dog's back. > > If so, line-height is the way to go: No. They mean putting two spaces after a period, like your elementary teachers probably taught you as you were learning how to print. ie. I like cake. It tastes good. Cheesecake is my favourite. vs. I like cake. It tastes good. Cheesecake is my favourite. Regards, Geoff -- http://www.doctype.ca/ http://www.allmyfaqs.com/faq.pl?Geoff_Ball |
|
|
|
#6 |
|
Posts: n/a
|
>
> No. They mean putting two spaces after a period, like your elementary > teachers probably taught you as you were learning how to print. While I was taught that in elementary school as well, does anyone have a definitive answer on whether or not its required syntax for proper grammer? |
|
|
|
#7 |
|
Posts: n/a
|
Chris Beall wrote:
> I prefer the visual appearance of a double space between sentences. > In HTML, I get this effect by placing each sentence on its own line > and eding it with , thus: > The quick brown fox jumps over the lazy dog. > The new line character following the provides the second space > before the next sentence starts. > > This is, however, a STYLE thing, not CONTENT. In today's world it > seems that I should just be typing the sentences with a single > separating space and then applying an appropriate CSS sytle parameter > like sentence-space: double. I don't see any way to do this in CSS2, > nor do I see it over the horizon in CSS3. > > Have I missed something? > The threads that have dealt with this previously Have a look on Google groups - this crops up regularly and has resulted in some lengthy discussions of the more heat than light variety. 36 posts when it came up in Feb, 64 in July last year, etc... I'm not saying that you shouldn't raise this again - I'm just mentioning that you'll be lucky to get away with a simple answer. You, of course, can set out your documents however you want but, apart from the convention developed for using fixed space fonts on typewriters prevalent during the last century, there's a single space after a full stop. -- PeterMcC If you feel that any of the above is incorrect, inappropriate or offensive in any way, please ignore it and accept my apologies. |
|
|
|
#8 |
|
Posts: n/a
|
"Chris Beall" <> wrote in message
news:BOGSa.2166$ m... > I prefer the visual appearance of a double space between sentences. In > HTML, I get this effect by placing each sentence on its own line and > eding it with , thus: > The quick brown fox jumps over the lazy dog. > The new line character following the provides the second space > before the next sentence starts. > > This is, however, a STYLE thing, not CONTENT. In today's world it seems > that I should just be typing the sentences with a single separating > space and then applying an appropriate CSS sytle parameter like > sentence-space: double. I don't see any way to do this in CSS2, nor do > I see it over the horizon in CSS3. > > Have I missed something? A single space separating sentences is the standard for proportional fonts. What you want would be appropriate in some regions for monospace fonts. I view this as being a browser issue rather than an HTML or CSS issue: the browser should render text with a sentence gap appropriate to the font and the user's personal preferences. |
|
|
|
#9 |
|
Posts: n/a
|
mike c wrote: > > While I was taught that in elementary school as well, does anyone have a > definitive answer on whether or not its required syntax for proper grammer? I do. It is not proper grammar. It is a typewriter thing. Double spaces after periods has never been acceptable in fine typography. --- Don McCahill www.whilo.com |
|
|
|
#10 |
|
Posts: n/a
|
mike c wrote:
>> No. They mean putting two spaces after a period, like your elementary >> teachers probably taught you as you were learning how to print. > > While I was taught that in elementary school as well, does anyone > have a definitive answer on whether or not its required syntax for > proper grammer? It's neither syntax nor grammar - it was a stylistic convention used for fixed space fonts on typewriters in the last century. -- PeterMcC If you feel that any of the above is incorrect, inappropriate or offensive in any way, please ignore it and accept my apologies. |
|