Latest

recent

CSS text-align Property

Definition

The text-align property aligns the text in an element.
Inherited: Yes

JavaScript Syntax

CSS properties can also be dynamically changed with a JavaScript.
Scripting Syntax: object.style.textAlign="right"

Examples

p
{
text-align: center
}

Possible Values

Value Description
left Aligns the text to the left.Default value: Browser dependent
right Aligns the text to the right
center Centers the text
justify

Goto CSS3 and CSS2 complete reference
CSS text-align Property Reviewed by 1000sourcecodes on 10:06 Rating: 5
Powered by Blogger.