PDA

View Full Version : Capital letters in css templates?



hrry
17 Sep 2007, 03:07 AM
I have downloaded some free templates and sent them to my web space, but the headings are showing up with lower case lettering. Example: welcome, not Welcome. Is there a change I can make in the code or style sheet? New to css, so steep learning curve.

alvo
17 Sep 2007, 03:33 AM
You do this in CSS by specifying a text-transforn attribute, of which there are four choices: capitalize, uppercase, lowercase and none. The one you want is this:
.ttu{text-transform:uppercase;}

The other related attributes:
.ttl{text-transform:lowercase;}
will make everything lowercase

.ttc{text-transform:capitalize;}
will capitalize the first letter of each word

and
.ttn{text-transform:none;}
applies no capitalization effects (and obviously not used much).