2013년 1월 21일 월요일

CSS text-transform property




ransform text in different elements:
h1 {text-transform:uppercase;}
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

ValueDescriptionPlay it
noneNo capitalization. The text renders as it is. This is defaultPlay it »
capitalizeTransforms the first character of each word to uppercasePlay it »
uppercaseTransforms all characters to uppercasePlay it »
lowercaseTransforms all characters to lowercasePlay it »
inheritSpecifies that the value of the text-transform property should be inherited from the parent element

댓글 없음: