Styling Tables
13.7
Lesson

Horizontal alignment in Tables

By default, the text in the header row is center aligned and the text in all other rows is left aligned. The text-align property can be used to change this alignment using the values left, right, center or justify:

You can align text differently for the header row and other rows by setting values for th and td separately: