Eigenschap text-fill-color
De eigenschap text-fill-color property bepaalt
de vulkleur van teksttekens of hun transparantie
met behulp van de waarde transparent.
Syntaxis
selector {
text-fill-color: kleur of transparent;
}
Voorbeeld
Laten we onze tekst een verloopvulling met transparantie geven:
<p>
This is a text.
</p>
body {
width: 200px;
height: 100px;
}
p {
-webkit-text-fill-color: transparent;
text-fill-color: transparent;
font-size: 26px;
background: linear-gradient(#c42222, #ffef5e);
-webkit-background-clip: text;
background-clip: text;
}
:
Zie ook
-
de eigenschap
text-stroke,
die de tekstomlijning bepaalt -
de eigenschap
text-stroke-color,
die de kleur van de tekstomlijning bepaalt -
de eigenschap
text-stroke-width,
die de dikte van de tekstomlijning bepaalt