๋ฐ์ํ
text๋ก ์์ํ๋ ๊ธ์์์ฑ
1. text-align : ์ํ ์ ๋ ฌ
2. text-decoration : ๊ธ์์ ์ฌ๋ฌ์ค ์ง์
3. text-indent : ๋ค์ฌ์ฐ๊ธฐ ์ง์
4. text-transform : ์๋ฌธ ๋/์๋ฌธ์ ๋ณ๊ฒฝ
1. text-align
text-align: left; : ์ผ์ชฝ์ ๋ ฌ
text-align: center; : ๊ฐ์ด๋ฐ ์ ๋ ฌ
text-align: right; : ์ค๋ฅธ์ชฝ์ ๋ ฌ
text-align: justify; : ์์ชฝ์ ๋ ฌ
<result>
* inputํ๊ทธ ์์์๋ ์ฌ์ฉ ๊ฐ๋ฅ
<result>
*tableํ๊ทธ ์์์๋ ์ฌ์ฉ ๊ฐ๋ฅ
<result>
2.text-decoration
text-decoration : overline; : ๊ธ์ ์์ ์ค
text-decoration : line-through; : ๊ธ์ ์ค๊ฐ์ ์ค(์ทจ์์ )
text-decoration : underline; : ๊ธ์ ์๋ ์ค
text-decoration : none : ์์ ๊ธฐ
โปhover : ๋ง์ฐ์ค ์ค๋ฒ์ css ์ง์
<result>
3. text-indent
text-indent: ์์,์์,%,em
-> ์ฒซ ์ค์๋ง ์ ์ฉ ๋จ
<result>
4. text-transform
text-transform : none : ๋ณ๊ฒฝ์์
text-transform : lowercase : ์๋ฌธ์๋ก ๋ณ๊ฒฝ
text-transform : uppercase : ๋๋ฌธ์๋ก ๋ณ๊ฒฝ
text-transform : capitalize : ์ฒซ๊ธ์๋ฅผ ๋๋ฌธ์๋ก ๋ณ๊ฒฝ
<result>
๋ฐ์ํ
'STUDY > CSS' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
CSS - font (0) | 2022.04.29 |
---|---|
CSS - ์ ํ์๋ฅผ ์ด์ฉํด์ css ์ ์ฉ (0) | 2022.04.29 |
CSS - css๋ฅผ ์ ์ฉํ๋ 3๊ฐ์ง ๋ฐฉ๋ฒ (0) | 2022.04.29 |