IT/- 프로그래밍
HTML5/CSS3 text-index : 글자 들여쓰기
혁준7519
2017. 6. 1. 06:14
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 |
결과