Glubase - share your knowledge


All / Computers / Programming / CSS





  • View Command

CSS Reference

CSS text-align definition

Browser support
IEFFOpSaf

Type:

Syntax

text-alignment: [left | right | center | justify]

Description

The text-align property sets the alignment of the text.

Values

left | right | center | justify

Example

[Try this example yourself]
<p style="text-align: center;">Example text</p>

Output

Example text

  • Comments

No comments added.