문서의 선택한 두 판 사이의 차이를 보여줍니다.
| 다음 판 | 이전 판 | ||
|
wiki:css:css_note:css_text [2021/03/08 11:39] emblim98 만듦 |
wiki:css:css_note:css_text [2023/01/13 18:44] (현재) |
||
|---|---|---|---|
| 줄 7: | 줄 7: | ||
| </ | </ | ||
| <WRAP clear></ | <WRAP clear></ | ||
| + | \\ | ||
| \\ | \\ | ||
| =====Source of the article==== | =====Source of the article==== | ||
| 줄 59: | 줄 60: | ||
| '' | '' | ||
| \\ | \\ | ||
| - | 텍슨트는 우측 정렬, 중앙 정렬 또는 | + | 텍스트는 우측 또는 좌측 정렬, 중앙 정렬 또는 |
| + | \\ | ||
| + | 하기의 예제에서 중앙 정렬, 좌측/ | ||
| + | (텍스트 방향이 왼쪽에서 오른쪽일 때에서는 왼쪽 정렬이 기본이고, | ||
| + | \\ | ||
| + | ====예제==== | ||
| + | <code css> | ||
| + | h1 { | ||
| + | text-align: center; | ||
| + | } | ||
| + | |||
| + | h2 { | ||
| + | text-align: left; | ||
| + | } | ||
| + | |||
| + | h3 { | ||
| + | text-align: right; | ||
| + | } | ||
| + | </ | ||
| + | \\ | ||
| + | '' | ||
| + | ====예제==== | ||
| + | <code css> | ||
| + | div { | ||
| + | text-align: justify; | ||
| + | } | ||
| + | </ | ||
| + | \\ | ||
| + | \\ | ||
| + | ======Text Direction===== | ||
| + | '' | ||
| + | ====예제==== | ||
| + | <code css> | ||
| + | P { | ||
| + | direction: rtl; /* rtl: right to left */ | ||
| + | unicode-bidi: | ||
| + | } | ||
| + | </ | ||
| + | \\ | ||
| + | \\ | ||
| + | ======Vertical Alignment====== | ||
| + | '' | ||
| + | \\ | ||
| + | 하기 예제에서 텍스트 안에 있는 하나의 이미지의 수직 정렬을 설정하는 방법을 확인할 수 있습니다.\\ | ||
| + | ====예제==== | ||
| + | <code css> | ||
| + | img.top { | ||
| + | vertical-align: | ||
| + | } | ||
| + | |||
| + | img.middle { | ||
| + | vertical-align: | ||
| + | } | ||
| + | |||
| + | img.bottom { | ||
| + | vertical-align: | ||
| + | } | ||
| + | </ | ||
| + | \\ | ||
| + | \\ | ||
| + | ======CSS Text Decoration====== | ||
| + | '' | ||
| + | \\ | ||
| + | '' | ||
| + | ====예제==== | ||
| + | <code css> | ||
| + | a { | ||
| + | text-decoration: | ||
| + | } | ||
| + | </ | ||
| + | \\ | ||
| + | 다른 '' | ||
| + | ====예제==== | ||
| + | <code css> | ||
| + | h1 { | ||
| + | text-decoration: | ||
| + | } | ||
| + | |||
| + | h2 { | ||
| + | text-decoration: | ||
| + | } | ||
| + | |||
| + | h3 { | ||
| + | text-decoration: | ||
| + | } | ||
| + | </ | ||
| + | \\ | ||
| + | **Note: | ||
| + | 혼란을 줄 수 있기 때문에, 링크가 아닌 텍스트에 밑줄을 긋는 것을 권장하지 않습니다.\\ | ||
| + | \\ | ||
| + | \\ | ||
| + | ======Text Transformation====== | ||
| + | '' | ||
| + | \\ | ||
| + | 모든 철자를 대문자나 소문자로 변경하거나, | ||
| + | \\ | ||
| + | ====예제==== | ||
| + | <code css> | ||
| + | p.uppercase { | ||
| + | text-transform: | ||
| + | } | ||
| + | |||
| + | p.lowercase { | ||
| + | text-transform: | ||
| + | } | ||
| + | |||
| + | p.capitalize { | ||
| + | text-transform: | ||
| + | } | ||
| + | </ | ||
| + | \\ | ||
| + | \\ | ||
| + | ======CSS Text Spacing====== | ||
| + | =====Text Indentation (텍스트 들여쓰기)===== | ||
| + | '' | ||
| + | ====예제==== | ||
| + | <code css> | ||
| + | p { | ||
| + | text-indent: | ||
| + | } | ||
| + | </ | ||
| + | \\ | ||
| + | =====Letter Spacing (철자 간격, 자간 (字間)===== | ||
| + | '' | ||
| + | \\ | ||
| + | 하기의 예제는 철자 사이의 공간을 늘이고 줄이는 방법을 보여줍니다.\\ | ||
| + | \\ | ||
| + | ====예제==== | ||
| + | <code css> | ||
| + | h1 { | ||
| + | letter-spacing: | ||
| + | } | ||
| + | |||
| + | h2 { | ||
| + | letter-spacing: | ||
| + | } | ||
| + | </ | ||
| + | \\ | ||
| + | \\ | ||
| + | =====Line Height (행 높이)===== | ||
| + | '' | ||
| + | ====예제==== | ||
| + | <code css> | ||
| + | p.small { | ||
| + | line-height: | ||
| + | } | ||
| + | |||
| + | p.big { | ||
| + | line-height: | ||
| + | } | ||
| + | </ | ||
| + | \\ | ||
| + | \\ | ||
| + | =====Word Spacing===== | ||
| + | '' | ||
| + | \\ | ||
| + | 하기의 예제는 단어들 사이의 공간을 늘이거나 줄이는 방법을 보여줍니다.\\ | ||
| + | ====예제==== | ||
| + | <code css> | ||
| + | h1 { | ||
| + | word-spacing: | ||
| + | } | ||
| + | |||
| + | h2 { | ||
| + | word-spacing: | ||
| + | } | ||
| + | </ | ||
| + | \\ | ||
| + | \\ | ||
| + | =====White Space===== | ||
| + | '' | ||
| + | \\ | ||
| + | 하기 예제에서 한 요소 내부에서 텍스트 랩핑(text wrapping)을 불가능하게 하는 방법을 확인합니다.\\ | ||
| + | ====예제==== | ||
| + | <code css> | ||
| + | p { | ||
| + | white-space: | ||
| + | } | ||
| + | </ | ||
| + | \\ | ||
| + | \\ | ||
| + | =====CSS Text Shadow===== | ||
| + | '' | ||
| + | \\ | ||
| + | 가장 단순하게 사용하기 위해서 수평 그림자(2px) 그리고 수직 그림자(2px)를 지정합니다.\\ | ||
| + | ====예제==== | ||
| + | <code css> | ||
| + | h1 { | ||
| + | text-shadow: | ||
| + | } | ||
| + | </ | ||
| + | \\ | ||
| + | 그리고 나서, 그림자에 컬러 (red)를 추가합니다.\\ | ||
| + | ====예제==== | ||
| + | <code css> | ||
| + | h1 { | ||
| + | text-shadow: | ||
| + | } | ||
| + | </ | ||
| + | 이후, 그림자에 블러 효과 (5px)(blur effect, 흐리게 하기)를 추가합니다.\\ | ||
| + | ====예제==== | ||
| + | <code css> | ||
| + | h1 { | ||
| + | text-shadow: | ||
| + | } | ||
| + | </ | ||
| + | \\ | ||
| + | \\ | ||
| + | =====All CSS Text Properties===== | ||
| + | ^ Property | ||
| + | | color | 텍스트의 컬러를 설정합니다. | ||
| + | | direction | ||
| + | | letter-spacing | ||
| + | | line-height | ||
| + | | text-align | ||
| + | | text-decoration | ||
| + | | text-indent | ||
| + | | text-shadow | ||
| + | | text-transform | ||
| + | | text-overflow | ||
| + | | unicode-bidi | ||
| + | | vertical-align | ||
| + | | white-space | ||
| + | | word-spacing | ||
| + | |||
| + | |||