HTML and CSS Reference
In-Depth Information
would act similarly to the standard
<h1 style="text-shadow: 2px 2px 0 gray;">
Regular DropShadow!
</h1>
text-stroke
This is a shorthand property to define the width and color for the outline of a text block.
Syntax
text-stroke: text-stroke-width text-stroke-color
Examples
<h1 style="font-size: 70px;-webkit-text-fill-color: red;
-webkit-text-stroke: 2px green;">
Merry Christmas
</h1>
<h1 style="font-size: 70px;-webkit-text-stroke: 1px black;
color: white;">
Outlined!
</h1>
Compatibility
No specification
Chrome 1+, Safari 3+
Notes
• Under WebKit-based browsers this property is defined as
-webkit-text-stroke
.
• This property is often used in conjunction with
text-fill-color
.
text-stroke-color
This property defines the color for the outline of a text block.
Syntax
text-stroke-color:
colorvalue
| currentColor
where
colorvalue
is a typical CSS color value like
#f00
,
red
, and so on. The default is
currentColor
.