May 2003
Intermediate to advanced
480 pages
10h 9m
English
This property sets the horizontal alignment of text and other inline content within a block element.
If you're looking for a way to set the horizontal alignment of a block (e.g. to center it on the page), you should instead use the margin-left, margin-right, left, and right properties to achieve the desired effect (e.g. you can center a block horizontally by setting its left and right margins to auto).
Inherited: Yes
See also: Section B.108text-align-last, Section B.120vertical-align
This property supports the following constant values:
center
justify
left
right
center, left, and right are self-explanatory. justify should be familiar to users of word processors; it causes the words on each line to be spaced out ...
Read now
Unlock full access