Page 1 of 1

Heading Style Sentence Caps or Title Caps - How?

Posted: Wed Apr 09, 2008 6:58 am
by parsonsv
Hi all
I'm wondering if anyone can help me. I want all my H2 in my WebHelp project to display as Sentence cap. And, I want all my H1 to display as Title cap. However, I can't see a style location where I can set that in the stylesheet.

The closest I found was the font-varient style, where I can choose to make the font small-caps, inherit, or normal.

Does anyone know how I can set the style to make H1 title caps and H2 sentence caps? Perhaps the setting isn't in the stylesheet editor and I need to type it in manually into the CSS? If so, does anyone know the property I would use?

Thanks for your help

Re: Heading Style Sentence Caps or Title Caps - How?

Posted: Wed Apr 09, 2008 7:36 am
by lacastle
I never knew that was an option anywhere. I just assumed you would have to type a heading in sentence or title caps depending on which way you wanted it.

Re: Heading Style Sentence Caps or Title Caps - How?

Posted: Wed Apr 09, 2008 7:56 am
by parsonsv
Well, that just might be the case. However, in Word, for example, you can select a sentence and then select Format | Change Case and choose Sentence case, Lowercase, Uppercase, Title case, or Toggle case. I was hoping with the power of CSS, that I could somehow do the same thing with a style property.

Re: Heading Style Sentence Caps or Title Caps - How?

Posted: Wed Apr 09, 2008 8:02 am
by parsonsv
I think I discovered how to create Title Caps

text-transform: capitalize;

Now, on to discover how to create Sentence Caps.....

Re: Heading Style Sentence Caps or Title Caps - How?

Posted: Wed Apr 09, 2008 8:09 am
by lacastle
That's pretty cool. I never knew that.

Re: Heading Style Sentence Caps or Title Caps - How?

Posted: Wed Apr 09, 2008 11:17 am
by parsonsv
Apparently, Sentence Case is NOT possible in CSS