728x90
1. ๊ทธ๋ผ๋ฐ์ด์ ์ผ์๋ก ๋ฃ๊ธฐ
background: linear-gradient ( ๋ฐฉํฅ, ์์1, ์์2 ... )
<style>
.gradtext {
background: #55ffaa;
background: -webkit-linear-gradient(left, #55ff55, #55ffff);
background: -moz-linear-gradient(right, #55ff55, #55ffff);
background: -o-linear-gradient(right, #55ff55, #55ffff);
background: linear-gradient(to right, #55ff55, #55ffff);
-webkit-background-clip: text;
background-clip: text;
color: transparent;
font-size: 48px;
font-weight: bold;
}
</style>


2. ๊ทธ๋ผ๋ฐ์ด์ ๊ธฐ์ธ๊ธฐ์๊ฒ ๋ฃ๊ธฐ
<style>
.gradtext {
background: linear-gradient(to right bottom,#002fff,#09ff00,#ffe100,#ff0000);
-webkit-background-clip: text;
background-clip: text;
color: transparent;
font-weight: bold;
}
</style>


์์ : www.w3schools.com/colors/colors_picker.asp
HTML Color Picker
Selected Color: Black Text Shadow White Text Shadow
www.w3schools.com
์ฐธ๊ณ : parkjuwan.dothome.co.kr/wordpress/2017/04/01/css-text-gradient/
'css' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[CSS] table ๋์ด ๊ณ ์ ์ํค๊ธฐ (0) | 2021.06.10 |
---|---|
[css] overflow ์ฌ์ฉํ๊ธฐ (์คํฌ๋กค) (5) | 2021.05.10 |
[css] ul li ๊ฐ๋ก ์ ๋ ฌ (0) | 2021.04.23 |
[css] ๋ฐ์ํ ์น calc() (0) | 2021.04.23 |
[css] ์ด๋ฏธ์ง์์ button ์ถ๊ฐํ๊ธฐ (0) | 2021.02.05 |