text-align
Introduction
The text-align CSS property sets the horizontal alignment of the inline-level content inside a block element.
Examples
Syntax
Values
-
leftThe inline contents are aligned to the left edge of the line box. -
rightThe inline contents are aligned to the right edge of the line box. -
centerThe inline contents are centered within the line box. -
startThe same as left if direction is left-to-right and right if direction is right-to-left. Whendirectionisnormal,startis the nature direction of text。 -
endThe same as right if direction is left-to-right and left if direction is right-to-left.
Formal definition
| Initial value | start |
| Applies to | text |
| Inherited | yes |
| Animatable | no |
Formal syntax
Difference with web
-
Not support
justify-allandjustify. -
Not support
match-parent.
Compatibility
LCD tables only load in the browser