CSS3 > Texts

Text-Alignment in CSS3

How to align the text using css


Align

Align property is used to align the text or image to right, left and it align the texts in the horizontal way 

  • left − The left edge of each line box is aligned with the left edge of the block-level element's content area.

  • right − The right edge of each line box is aligned with the right edge of the block-level element's content area.

  • center − The center of each line box is aligned with the center of the block-level element's content area.

  <p><i>Align</i></p>
    <p style="text-align:right">Techfunda</p>
    <p style="text-align:center">Techfunda</p>
    <p style="text-align:left">Techfunda</p>

In the above code snippet we have the align property which is is used to align right, left and center

output

 Views: 3743 | Post Order: 126



Write for us






Hosting Recommendations