Text Align Property
The Text Align property can be used to set how text within an element is aligned with reference to the boundaries of the element.
Description
The text-align property can be specified in many ways.
- Left - The text is left aligned.
- Right - The text is right aligned.
- Center - The text shows up slightly thicker than bold text.
- Justify - Aligns text in a justified manner so each line has it's left most starting word at the left edge and the right most fittable word is at the right edge.
Syntax :
element {
text-align: left;
}
p {
text-align: right;
}