Definition The text-align property aligns the text in an element. Inherited: Yes JavaScript Syntax CSS properties can also be dynamical...
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