W3docs

text-align

CSS Property:

Result:

This is an example of the CSS text-align property.The text-align property is used for aligning the inner content of a block element.

CSS Code:

#myDiv {
text-align:right;
}

Click the property values above to see the result