You are here : cssCSS 3text-align

text-align - CSS 3

The text-align property specifies the horizontal alignment of text in an element.


Syntax

text-align: left|right|center|justify|initial|inherit;


Example

h1 {    text-align: center;}
	h2 {    text-align: left;}
	h3 {    text-align: right;}


Output / Return Value


Limitations


Alternatives / See Also


Reference