The text-align property

An interactive demonstration of the text-align property.

This is a paragraph of sample text which can be aligned in four different ways: left, center, right, and 'justify'. There follows a blockquote: note how this property is inherited.

A block of text is a stack of line boxes. In the case of 'left', 'right' and 'center', this property specifies how the inline boxes within each line box align with respect to the line box's left and right sides; alignment is not with respect to the viewport. In the case of 'justify', this property specifies that the inline boxes are to be made flush with both sides of the block. (See also 'letter-spacing' and 'word-spacing'.)


Tweet

Comments

Leave a comment