CSS text-align Property
Set the text alignment for different <div> elements: div.a { text-align: center; }div.b { text-align: left; } div.c { text-align: right; } div.c { text-align: justify; } Try it Yourself » More “Try it Yourself” examples below. Definition and Usage The text-align property specifies the horizontal alignment of text in an element. Default value: left if direction is ltr, and right if direction is […]
