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

CSS3 text-emphasis property

CSS3 text-emphasis property

CSS Reference ManualCSS Reference Manual

Example

Change the spacing between words so that each line is justified:

p

{

text-emphasis:

filled

red

; -

webkit-text-emphasis:

filled

red

;

}

Try it »


Browser support


Definition and usage

The text-emphasis property is a shorthand property for setting text-emphasis-style and text-emphasis-color in a single declaration.

Tip: Adobe's "Kenten Generic OpenType Font" is a font suitable for emphasis marks; it is specially designed for emphasis marks.

Default value: none
Inheritance: yes
Version: CSS3
JavaScript syntax: object.style.textEmphasis="filled blue"

Syntax


text-emphasis: text-emphasis-style text-emphasis-color;
Value Description
text-emphasis-style Apply emphasis marks to the text of an element.
text-emphasis-color Defines the foreground color of the emphasis marks.

CSS Reference ManualCSS Reference Manual