AdBlock Detected!
Our website is made possible by displaying ads to our visitors. Please supporting us by whitelisting our website.
CSS Text-Align Property |
The text-align property specifies how to align text horizontally. Possible values are: Several examples are shown below: Example 1: Left align CSS Declaration
The following HTML,
renders: This paragraph is an example of left justification. In Example 1, both lines are aligned to the left. This is the default behavior–without specifying text-align, this is what we would see. Example 2: Right align CSS Declaration
The following HTML,
renders: This paragraph is an example of right justification. In Example 2, both lines are aligned to the right. Example 3: Aligned to the center CSS Declaration
The following HTML,
renders: This paragraph is an example of being aligned to the center. In Example 3, the paragraph is centered. Example 4: Justified CSS Declaration
The following HTML,
renders: This paragraph is an example of full justification. In Example 4, the first line is aligned to both the left edge and right edge. As a result, there is more empty space between the words to achieve this effect. |
Our website is made possible by displaying ads to our visitors. Please supporting us by whitelisting our website.