ransform text in different elements:
h1 {text-transform:uppercase;}
h2 {text-transform:capitalize;}
p {text-transform:lowercase;}
h2 {text-transform:capitalize;}
p {text-transform:lowercase;}
http://www.w3schools.com/cssref/pr_text_text-transform.asp
capitalize
앞에 단어만 업케스트한다.
CSS Uppercase / Capitalize – Html All caps
1 | <div style="text-transform: capitalize;"> aaaaaaa.com </div> |
Property Values
| Value | Description | Play it |
|---|---|---|
| none | No capitalization. The text renders as it is. This is default | Play it » |
| capitalize | Transforms the first character of each word to uppercase | Play it » |
| uppercase | Transforms all characters to uppercase | Play it » |
| lowercase | Transforms all characters to lowercase | Play it » |
| inherit | Specifies that the value of the text-transform property should be inherited from the parent element |
댓글 없음:
댓글 쓰기