Why are used text-align center property in CSS align?

S

Shujata Jha

The text-align: center CSS property use to align the text in the center. After using the text-align: center property the focus on the center position of the HTML element where we apply text-align: center property

Example of text-align: center

<p style ="text-align: center">This is a paragraph with text-align: center property.</p>

Result:

                                            This is a paragraph with text-align: center property.

Example of text-align: left

<p style ="text-align: left">This is a paragraph with text-align: center property.</p>

Result:

This is a paragraph with text-align: center property.

Example of text-align: right

<p style ="text-align: right">This is a paragraph with text-align: center property.</p>

Result:

                                                                                            This is a paragraph with text-align: center property.

0 votes

Your Answer

Email Us: advertise@gdatamart.com

Donate Us: Support to GDATAMART

LifeStyle & Fun

© 2024 GDATAMART.COM (All Rights Reserved)