For a given text node on a page...
abcdefghijklmnop You can capitalize all letters with this:
selector { text-transform : uppercase; } /* Output: ABCDEFGHIJKLMNOP */ You can capitalize just the first letter with this:
selector { display : block; } selector:first-letter { text-transform: capitalize; } /* Output: Abcdefgijklmnop */ Is there any way to capitalize specific letters in the string besides the first letter? Example:
/* Pseudo code */ selector:nth-character(odd) { text-transform : uppercase; } /* Output: aBcDeFgHiJkLmNoP */