text-index : 글자 들여쓰기
html)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, height=device-height, minimum-scale=1.0, maximum-scale=1.0, initial-scale=1.0"> <title>Insert title here</title> <style> p { font-size: 1.3em; background: #CEFBC9; } /* text-index : 글자 들여쓰기 ( - 이면 내어쓰기가 됨) */ p.letter { text-indent : 1em; } p.number { text-indent : -1em; } </style> </head> <body> <p class="letter">가나다라마바사아자차카타파하 아야어여오요우유으이 0123456789</p> <p class="number">1234567890</p> </body> </html> | cs |
결과
'IT > - 프로그래밍' 카테고리의 다른 글
HTML5/CSS3 word-break, white-space : 줄바꿈 속성 (0) | 2017.06.03 |
---|---|
HTML5/CSS3 이미지, 텍스트 수직으로 가운데 정렬하기 (0) | 2017.06.02 |
HTML5/CSS3 letter-spacing, word-spacing, line-height : 글자 간격 (0) | 2017.05.31 |
HTML5/CSS3 @font-face : 폰트파일 사용하기 (0) | 2017.05.30 |
HTML5/CSS3 :first-letter, :first-line 선택자 (0) | 2017.05.29 |