CSS TEXT-ALIGN
The text-align property aligns the text in an element.
Examples
p {
text-align: center
}
Possible Values
inherit: Explicitly sets the value of this property to that of the parent.
justify: justified text
left: Aligns the text to the left
right: Aligns the text to the right
center: Centers the text
[string]: Specifies a string around which cells in a table column will align. Only applies to table cells. If used for other element types, it will be treated as as "left" or "right" depending on the current language writing direction ("left" for English.)
Go Back