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

-webkit-text-fill-color property

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

Possible values:

 One of the following values: 
color
Color of the text. For the supported color values, see the colors page.
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-fill-color property:
<head>
    <style>
        #myDiv { 
            -webkit-text-fill-color: red;
        }
    </style>
</head>
<body>
    <div id="myDiv">
        Some text content in the division
    </div>
</body>
Did you find this example helpful? yes no

Supported by tags:

Related pages:

External links:

User Contributed Comments

Post Content

Post Content