Savybė text-stroke-width
Savybė text-stroke-width nurodo teksto simbolių kontūro
arba jo apvado storį. Savybė
priima reikšmes, nurodytas matavimo vienetais
kaip px, em, rem ir pan. Taip pat
galima nurodyti šias reikšmes: thin (plona linija),
medium (vidutinė linija) ir thick
(stora linija).
Sintaksė
selektorius {
text-stroke-width: skaičius arba thin arba medium arba thick;
}
Pavyzdys
Priskirkime mūsų teksto simboliams ploną kontūrą:
<p>
Text
</p>
body {
width: 100px;
height: 50px;
}
p {
-webkit-text-stroke-color: orange;
-webkit-text-stroke-width: thin;
text-stroke-width: thin;
color: white;
font-size: 10em;
margin-top: 0;
font-weight: bold;
font-family: Arial;
}
:
Pavyzdys
Dabar pakeiskime ploną kontūrą į vidutinį:
<p>
Text
</p>
body {
width: 100px;
height: 50px;
}
p {
-webkit-text-stroke-color: orange;
-webkit-text-stroke-width: medium;
text-stroke-width: medium;
color: white;
font-size: 10em;
margin-top: 0;
font-weight: bold;
font-family: Arial;
}
:
Pavyzdys
Priskirkime mūsų teksto simboliams storą kontūrą:
<p>
Text
</p>
body {
width: 100px;
height: 50px;
}
p {
-webkit-text-stroke-color: orange;
-webkit-text-stroke-width: thick;
text-stroke-width: thick;
color: white;
font-size: 10em;
margin-top: 0;
font-weight: bold;
font-family: Arial;
}
:
Pavyzdys
Taip pat priskirkime mūsų teksto simboliams
2px storio kontūrą:
<p>
Text
</p>
body {
width: 100px;
height: 50px;
}
p {
-webkit-text-stroke-color: orange;
-webkit-text-stroke-width: 2px;
color: white;
font-size: 10em;
margin-top: 0;
font-weight: bold;
font-family: Arial;
}
:
Taip pat žiūrėkite
-
savybė
text-stroke,
kuri nurodo teksto kontūrą -
savybė
text-stroke-color,
kuri nurodo teksto kontūro spalvą