Text alignment
Now that you understand a bit about inline CSS style syntax, let's take a look at examples.
Let's say you want to set a paragraph's alignment to be centered by default. The text is usually aligned either to the left or the right depending on the language's default script direction. Use the property text-align
and choose the value center
. left
and right
are the other possible values of this property.