CSS property: text-align
Property values
Value |
Description |
|---|---|
center |
This value specifies that the width of the cell is adjusted to the content. For example, if a line of text is 40 pts in length, the cell is adjusted to a width of 40 pts plus any specified margin width. |
justify |
This value specifies that text is made to be flush to both sides of the element’s containing block. |
left |
This value specifies is aligned to the left of the element’s containing block. |
right |
This value specifies that text is aligned to the right of the element’s containing block. |
inherit |
This value specifies that the element inherits the text-align property value from the containing element. |
Parent topic: CSS Properties