text-stroke-width

text-stroke-width යනු අකුරු පෙළේ සටහන් වල thickness හෝ එහි outline සකසයි. මෙම ප්‍රෝපර්ටි එකට px, em, rem ආදී ඒකක වලින් අගයන් දැක්විය හැකිය. එසේම පහත අගයන් දැක්විය හැකිය: thin (සිහින් ඉර), medium (මධ්‍යම ඉර) සහ thick (තද ඉර).

Syntax

cssselector {
  text-stroke-width: number or thin or medium or thick;
}

උදාහරණය

අපගේ අකුරු පෙළට සිහින් outline එකක් දක්වමු:

html<p>
  Text
</p>
cssbody {
  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 එකකට වෙනස් කරමු:

html<p>
  Text
</p>
cssbody {
  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 එකක් දක්වමු:

html<p>
  Text
</p>
cssbody {
  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 එකක් දක්වමු:

html<p>
  Text
</p>
cssbody {
  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 වල වර්ණය දක්වයි