>> English << | česky | PortuguêsZVON > Tutorials > CSS2 tutorial
>> Example 27 << | Prev | Next | Index | Contents

The text-transform property can have following values: uppercase, lowercase, and capitalize. Capitalize changes the first character of the word to uppercase, uppercase everything to uppercase and lowercase everything to lowercase.

XML SourceCSS stylesheetExample link
(1)
     <AAA>
          <BBB>bbb bbb bbb</BBB>
          <CCC>CCC CCC CCC</CCC>
          <DDD>ddd ddd ddd</DDD>
          <EEE>EEE EEE EEE</EEE>
     </AAA>

BBB {text-transform: uppercase}
CCC { text-transform: lowercase }
DDD { text-transform: capitalize }
EEE {text-transform: capitalize }
View output