Contents

textAlign

A string that specifies whether text is left-justified, right-justified, or centered.

Declaration

attribute DOMString textAlign;

Discussion

Possible values are start (default), end, left, right, and center. The values start and end are equivalent to either left or right, depending on the text direction.

See Also

Drawing Text