CSS3 text-emphasis Property

Example

Justification changes spacing at word separators:

p
{
text-align:justify;
text-justify:inter-word;
}

Browser Support

Internet Explorer Firefox Opera Google Chrome Safari

The text-emphasis property is not supported in any of the major browsers.


Definition and Usage

The text-emphasis property specifies the justification method to use when text-align is set to "justify".

Default value: auto
Inherited: yes
Version: CSS3
JavaScript syntax: object.style.textJustify="inter-word"


Syntax

text-justify: auto|inter-word|inter-ideograph|inter-cluster|distribute|kashida|trim;

Value Description
auto The browser determines the justification algorithm to follow
inter-word Justification changes spacing at word separators (typically used for languages that separate words using spaces, like English)
inter-ideograph Justification changes spacing at word separators and at inter-graphemic boundaries in scripts that use no word spaces (typically used for CJK languages)
inter-cluster Justification changes spacing at word separators and at grapheme cluster boundaries in clustered scripts (typically used for Southeast Asian scripts)
distribute Justification changes spacing both at word separators and at grapheme cluster boundaries in all scripts except those in the connected and cursive groups
kashida Justification stretches Arabic and related scripts through the use of kashida or other calligraphic elongation
trim Specifies that compression is preferred to expansion and enables the trimming of blank space in glyphs where allowed by typographic tradition