行揃えを指定

[右揃え]
text-alignプロパティは、テキストの横方向の位置を指定します。rightを指定すると、このように右揃えに表示されます。

[センタリング]
text-alignプロパティは、テキストの横方向の位置を指定します。centerを指定すると、このようにセンタリングされて表示されます。

[左揃え]
text-alignプロパティは、テキストの横方向の位置を指定します。leftを指定すると、このように左揃えに表示されます。

[両端揃え]
text-alignプロパティは、テキストの横方向の位置を指定します。値justifyは両端揃えを意味しますが、通常は動作しません。

A block of text is a stack of line boxes. In the case of 'left', 'right' and 'center', this property specifies how the inline boxes within each line box align with respect to the line box's left and right sides; alignment is not with respect to the viewport.

A block of text is a stack of line boxes. In the case of 'left', 'right' and 'center', this property specifies how the inline boxes within each line box align with respect to the line box's left and right sides; alignment is not with respect to the viewport.

A block of text is a stack of line boxes. In the case of 'left', 'right' and 'center', this property specifies how the inline boxes within each line box align with respect to the line box's left and right sides; alignment is not with respect to the viewport.

A block of text is a stack of line boxes. In the case of 'left', 'right' and 'center', this property specifies how the inline boxes within each line box align with respect to the line box's left and right sides; alignment is not with respect to the viewport.

ヘッダ(左揃え)ヘッダ(センタリング)ヘッダ(右揃え)
データ(センタリング)データ(センタリング)データ(センタリング)
データ(右揃え)データ(センタリング)データ(左揃え)