Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

CSS3 text-outline property

CSS3 text-outline property

Example

Set the text-outline:

p.test

{

text-outline: 2px 2px #ff0000;

}


Browser support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

No major browser supports the text-outline property.


Property definition and usage

The text-outline property specifies a text outline.

Default value: none
Inherited: yes
Version: CSS3
JavaScript syntax: object.style.textOutline="2px 2px #ff0000"

Syntax

text-outline:

thickness blur color

;

Value Description
thickness Required. The thickness of the outline.
blur Optional. The blur radius of the outline.
color Required. The color of the outline. See A CSS color value .