+ 1
How to apply linear-gradient to the text?
Using CSS3, linear-gradient.
3 odpowiedzi
+ 19
h2{ background: -webkit-linear-gradient(red, yellow); -webkit-background-clip: text; -webkit-text-fill-color: transparent;}
+ 7
<< @Dayve And if the text has already gradient background? >>
Set a parent container to it, apply background gradient to parent, and text and its gradient to child ^^
<div class="myBGgradient"><div class="myTXTgradient">some text</div></div>
+ 2
@Dayve And if the text has already gradient background?