text-outline property CSS Reference



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;

Values

ValueDescription
thicknessRequired. The thickness of the outline
blurOptional. The blur radius of the outline
colorRequired. The color of the outline. Look at CSS Color Values for a complete list of possible color values

Examples

p.test {
text-outline: 2px 2px #ff0000;
}

Relative articles