Answers for "HTML TextAlign"

7

how to align text in html

<!-- Code By T64 -->

<!-- Solution -->
<p style="text-align: left">This text is aligned to the left side of the page</p>
<p style="text-align: center">This text is aligned to the center of the page</p>
<p style="text-align: right">This text is aligned to the right side of the page</p>

<!-- Output -->
This text is aligned to the left side of the page

				This text is aligned to the center of the page

                                 This text is aligned to the right side of the page

<!-- Website: https://installation.cf -->
Posted by: Guest on March-05-2020
0

css text align left

body {
  text-align: left;
}
Posted by: Guest on April-09-2020
1

what are the different text align in html

/* There are four different text align values: left, right, center 
     and justify. For example: */
text-align: center;
Posted by: Guest on September-16-2020
0

text-align property in css

The different values of text-align are -
1) text-align: justify; (spreads throughout to the left and right)
2) text-align: center; (centers the text)
3) text-align: left; (the default value, shifts the text to left side)
4) text-align: right; (shifts the text to right side)
Posted by: Guest on September-10-2020

Browse Popular Code Answers by Language