Eigenschap text-stroke-color
De eigenschap text-stroke-color bepaalt de kleur van de omtrek
van teksttekens of de
rand ervan.
Syntaxis
selector {
text-stroke-color: kleur;
}
Voorbeeld
Laten we onze teksttekens een oranje rand geven:
<p>
Text
</p>
body {
width: 200px;
height: 100px;
}
p {
-webkit-text-stroke-color: orange;
text-stroke-color: orange;
-webkit-text-stroke-width: 1px;
color: white;
padding: 10px;
font-size: 30px;
font-weight: bold;
font-family: Arial;
}
:
Zie ook
-
de eigenschap
text-fill-color,
die de vulkleur van teksttekens bepaalt -
de eigenschap
text-stroke,
die de tekstrand bepaalt -
de eigenschap
text-stroke-width,
die de dikte van de tekstrand bepaalt