test
-
text-align
.box { text-align: center; }
Definition and Usage
The
text-align
property specifies the horizontal alignment of text in an element.Default value left
if direction is ltr, andright
if direction is rtlInherited yes Animatable no. Read about animatable Version CSS1 JavaScript syntax object.style.textAlign="right"