CSS3’s text-align property defines how text should be horizontally aligned in relation to its parent element. You can use it to align text left (this is the default value), center, or right.
Join us in our newest publication:
The default value (text-align: left) is shown above. Here’s how you would center align text:
- p{
- text-align: center;
- }
To align your text to the right, use the following code:
- p{
- text-align: right;
- }