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

-webkit-text-stroke-color property

Browser support:
Sets the color of text's outline.
The color property also affects the outline color, but the -webkit-text-stroke-color has higher precedence.
JavaScript page for this property: webkitTextStrokeColor. You can find other example(s) there.

Possible values:

 One of the following values: 
Color of text's outline. For the supported color values, see the colors page.
Takes the value of this property from the computed style of the parent element.
Default: black.

Example HTML code 1:

This example illustrates the use of the -webkit-text-stroke-color 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