text-align

christian.dinh2481 total contributions
Published Jun 30, 2021Updated Sep 3, 2021
Contribute to Docs
To set the text alignment of inline contents.
Syntax
text-align: <text-align-value>;
The text-align-value
can be the following:
left
center
right
Example 1
Set the p
tag to center
:
p {text-align: center;}
The text in p
tag will be centered.
All contributors
- christian.dinh2481 total contributions
- Anonymous contributorAnonymous contributor3077 total contributions
- Anonymous contributorAnonymous contributor51 total contributions
- christian.dinh
- Anonymous contributor
- Anonymous contributor
Looking to contribute?
- Learn more about how to get involved.
- Edit this page on GitHub to fix an error or make an improvement.
- Submit feedback to let us know how we can improve Docs.