The text-align property sets the horizontal alignment, like left, right, or center.
By default, the text in
elements are center-aligned and the text in | elements are left-aligned.
The following example left-aligns the text in | elements:
Example
th {
text-align: left;
} |