You are here: Reference > CSS > properties > browser specific extensions > -webkit-text-stroke-width

-webkit-text-stroke-width property

Browser support:
Sets the width of text's outline.
JavaScript page for this property: webkitTextStrokeWidth. You can find other example(s) there.

Possible values:

 One of the following values: 
Takes the value of this property from the computed style of the parent element.
Same as 3px.
Same as 5px.
Same as 1px.
width in non-negative length
The width of text's outline in length units. For the supported length units, see the length page.
Default: medium.

Example HTML code 1:

This example illustrates the use of the -webkit-text-stroke-width property:
        #myDiv { 
            -webkit-text-fill-color: red;
            -webkit-text-stroke-color: red;
            -webkit-text-stroke-width: 1px;
    <div id="myDiv">
        Some stroked text
Did you find this example helpful? yes no

Supported by tags:

Related pages:

External links:

User Contributed Comments

Post Content

Post Content