Coding/HTML+CSS

[CSS] text에 그라데이션 먹이기

PSUR 2021. 9. 30. 16:54
p {
    background: none; 
    background: -moz-linear-gradient(right, #cb58fe 0%, #876ef8 100%); 
    background: -webkit-linear-gradient(right, #cb58fe 0%, #876ef8 100%); 
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#cb58fe', endColorstr='#876ef8', GradientType=1); 
    color: #cb58fe; /* ie에서 보이는 컬러 */
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent;
}