text-stroke-width
text-stroke-width යනු අකුරු පෙළේ සටහන් වල thickness හෝ එහි outline සකසයි. මෙම
ප්රෝපර්ටි එකට px, em, rem ආදී ඒකක වලින් අගයන් දැක්විය හැකිය.
එසේම පහත අගයන් දැක්විය හැකිය: thin (සිහින් ඉර),
medium (මධ්යම ඉර) සහ thick
(තද ඉර).
Syntax
selector {
text-stroke-width: number or thin or medium or thick;
}
උදාහරණය
අපගේ අකුරු පෙළට සිහින් outline එකක් දක්වමු:
<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;
}
:
උදාහරණය
දැන් සිහින් outline එක මධ්යම outline එකකට වෙනස් කරමු:
<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;
}
:
උදාහරණය
අපගේ අකුරු පෙළට තද outline එකක් දක්වමු:
<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;
}
:
උදාහරණය
එසේම අපගේ අකුරු පෙළට 2px outline එකක් දක්වමු:
<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;
}
:
මෙයද බලන්න
-
text-strokeප්රෝපර්ටි එක,
එය අකුරු පෙළේ outline දක්වයි -
text-stroke-colorප්රෝපර්ටි එක,
එය අකුරු පෙළේ outline වල වර්ණය දක්වයි