/

HTML / CSS / JavaScript Tutorial

CSS Property: text-justify

[this page | pdf | back links]

The CSS (CSS3) text-justify property indicates how text is justified when the text-align property has been set to justify.

 

Valid property values (other than inherit and initial) are:

 

Value

Description

auto

(default value). Browser determines justification

distribute

Primarily changes spacing at word separators and at grapheme boundaries in scripts other than connected and cursive scripts

inter-cluster

Primarily changes spacing at word separators and at grapheme boundaries in cursive scripts

inter-ideograph

Primarily changes spacing at word separators and at grapheme boundaries in connected scripts (i.e. ones that use no word spaces)

inter-word

Primarily changes spacing at word separators

kashida

Primarily stretches Arabic and related scripts through use of kashida or other calligraphic elongation

 

Default Value:

auto

JavaScript syntax:

e.g. object.style.textJustify="distribute"

Inherited:

Yes

Animatable:

No

 


NAVIGATION LINKS
Contents | Prev | Next | CSS Properties


Desktop view | Switch to Mobile