Vlastnost CSS text-transform
Příklad
Transformace textu do různých prvků <div>:
div.a {
text-transform: uppercase;
}
div.b {
text-transform: lowercase;
}
div.c {
text-transform: capitalize;
}
Definice a použití
Vlastnost text-transform
řídí velká písmena textu.
Výchozí hodnota: | žádný |
---|---|
Zděděno: | Ano |
Verze: | CSS1 |
Syntaxe JavaScriptu: | objekt .style.textTransform="velká písmena" |
Podpora prohlížeče
Čísla v tabulce určují první verzi prohlížeče, která plně podporuje vlastnost.
Property | |||||
---|---|---|---|---|---|
text-transform | 1.0 | 4.0 | 1.0 | 1.0 | 7.0 |
Syntaxe CSS
text-transform: none|capitalize|uppercase|lowercase|initial|inherit;
Hodnoty vlastností
Value | Description | Play it |
---|---|---|
none | No capitalization. The text renders as it is. This is default | |
capitalize | Transforms the first character of each word to uppercase | |
uppercase | Transforms all characters to uppercase | |
lowercase | Transforms all characters to lowercase | |
initial | Sets this property to its default value. Read about initial | |
inherit | Inherits this property from its parent element. Read about inherit |
Související stránky
CSS tutoriál: CSS Text
Odkaz HTML DOM: vlastnost textTransform