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

-webkit-text-stroke property

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

Possible values:

 One of the following values: 
 Any of the following values (use the space character to separate them, each value can be used only once): 
<-webkit-text-stroke-color>
<-webkit-text-stroke-width>
inherit

Description of values:

-webkit-text-stroke-color
Sets the color of text's outline.
-webkit-text-stroke-width
Sets the width of text's outline.
inherit
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 property:
<head>
    <style>
        #myDiv { 
            -webkit-text-fill-color: red;
            -webkit-text-stroke: 1px red;
        }
    </style>
</head>
<body>
    <div id="myDiv">
        Some stroked text
    </div>
</body>
Did you find this example helpful? yes no

Supported by tags:

Related pages:

External links:

User Contributed Comments

Post Content

Post Content