CSS PROPERTIES
Expand All|Collapse All
CSS AT-RULES
SPONSORED LINKS

CSS3 text-justify Property

Topic: CSS3 Properties Reference« Prev|Next »

Description

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

The following table summarizes the usages context and the version history of this property.

Default value: auto
Applies to: Block and optionally inline elements
Inherited: Yes
Animatable: No. See animatable properties.
Version: New in CSS3

Syntax

The syntax of the property is given with:

width auto | none | inter-word | distribute | initial | inherit

The example below shows the text-justify property in action.

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

Property Values

The following table describes the values of this property.

Value Description
auto The browser determines the justification algorithm to follow. This is default value.
none The justification is disabled.
inter-word Increases or decreases the spacing between words.
distribute Increases or decreases the spacing between letters and words.
initial Sets this property to its default value.
inherit If specified, the associated element takes the computed value of its parent element text-justify property.

Browser Compatibility

The text-justify property is not supported in most of the browsers.

Browsers Icon

Basic Support—

  • Firefox ×
  • Google Chrome ×
  • Internet Explorer 5.5+
  • Apple Safari ×
  • Opera ×
 

Warning:The text-justify property is currently not supported by the most of the browsers. You should better avoid using this property.


Further Reading

See tutorial on: CSS Text.

Related properties: text-align, white-space, letter-spacing, word-spacing.

 
Close

Your Feedback:

 

We would love to hear from you! Please say something.