text-align - CSS | Inline text-align
Thetext-alignCSS[1]propertysetsthehorizontalalignmentoftheinline-levelcontentinsideablockelementortable-cellbox.Thismeansitworkslikevertical-align[2]butinthehorizontaldirection.text-align:start;text-align:end;text-align:left;text-align:right;text-align:center;text-align:justify;text-align:justify-all;text-align:match-parent;text-align:".";text-align:"."center;text-align:-moz-center;text-align:-webkit-center;text-align:inherit;text-align:initial;text-align:revert;text-align:revert-layer;text-...
The text-align CSS[1] property sets the horizontal alignment of the inline-level content inside a block element or table-cell box. This means it works like vertical-align[2] but in the horizontal direction.
text-align: start; text-align: end; text-align: left; text-align: right; text-align: center; text-align: justify; text-align: justify-all; text-align: match-parent; text-align: "."; text-align: "." center; text-align: -moz-center; text-align: -webkit-center; text-align: inherit; text-align: initial; text-align: revert; text-align: revert-layer; text-align: unset;The text-align property is specified in one of the following ways:
Using the keyword values start, end, left, right, center, justify, justify-all, or match-parent. Using a <string> value only, in which case the other value defaults to right. Using both a keyword value and a <string>[3] value. Values[4]startThe same as left if direction is left-to-right and right if direction i...