Search w3schools.com:

SHARE THIS PAGE

CSS Reference

CSS Reference CSS Selectors CSS Reference Aural CSS Web Safe Fonts CSS Units CSS Colors CSS Color Values CSS Color Names CSS Color HEX CSS3 Browser Support

CSS Properties

CSS3 text-justify Property


Example

Justification changes spacing between words:

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

Try it yourself »

Browser Support

Internet Explorer Firefox Opera Google Chrome Safari

The text-justify property is currently supported only in Internet Explorer.


Definition and Usage

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

This property specifies how justified text should be aligned and spaced.

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 Play it
auto The browser determines the justification algorithm Play it »
inter-word Increases/Decreases the space between words Play it »
inter-ideograph Justifies content with ideographic text Play it »
inter-cluster Only content that does not contain any inter-word spacing (such as Asian languages) is justified Play it »
distribute Like the newspaper value, except that in East Asian languages (such as Thai) the last line is not justified Play it »
kashida Justifies content by elongating characters Play it »
trim   Play it »
none The justification is disabled Play it »




W3Schools Certification

W3Schools' Online Certification

The perfect solution for professionals who need to balance work, family, and career building.

More than 10 000 certificates already issued!

Get Your Certificate »

The HTML Certificate documents your knowledge of HTML.

The HTML5 Certificate documents your knowledge of advanced HTML5.

The CSS Certificate documents your knowledge of advanced CSS.

The JavaScript Certificate documents your knowledge of JavaScript and HTML DOM.

The jQuery Certificate documents your knowledge of jQuery.

The XML Certificate documents your knowledge of XML, XML DOM and XSLT.

The ASP Certificate documents your knowledge of ASP, SQL, and ADO.

The PHP Certificate documents your knowledge of PHP and SQL (MySQL).

Your suggestion:

Close [X]

Thank You For Helping Us!

Your message has been sent to W3Schools.

Close [X]