Easy Tutorial
❮ Css3 Pr Resize Func Cubic Bezier ❯

CSS3 text-justify Property

Example

Change the spacing between words to align each line:

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

Browser Support

The numbers in the table indicate the first browser version that fully supports the property.

Property
text-justify Not supported 5.5 Not supported Not supported Not supported

Property Definition and Usage

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

This property defines how text should be aligned and the spacing between characters.

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

Syntax

Value Description
auto The browser determines the justification algorithm.
none Disables justification.
inter-word Increases/decreases the space between words.
inter-ideograph Aligns content with ideographic text.
inter-cluster Justifies content that does not contain internal word spacing, such as Asian scripts.
distribute Similar to newspaper layout, except the last line in East Asian scripts is not justified.
kashida Aligns content by stretching characters.
❮ Css3 Pr Resize Func Cubic Bezier ❯