+ 3

How to align text to center

14th Jul 2019, 2:41 PM
Justin
Justin - avatar
8 Réponses
+ 6
Do not use center tag and align attribute, they are deprecated since hrml4. Use css to align text to center. display: block; text-align: center
14th Jul 2019, 3:19 PM
Calviղ
Calviղ - avatar
+ 3
Or you can use the center tag <center> </center>
14th Jul 2019, 3:06 PM
Akubia Godwin Maxwell
Akubia Godwin Maxwell - avatar
+ 1
you can just use align=“center” attribute in almost any tag
14th Jul 2019, 2:55 PM
Pikachu
Pikachu - avatar
+ 1
If in html,you can use <p text align="center">
22nd Jul 2019, 7:47 AM
redmoon
redmoon - avatar
0
<p text align="center" >text<p>
9th Aug 2019, 9:18 PM
achellam peter
achellam peter - avatar
0
How can I get text on my website to align to center? I tried the css display: block and text-align:center but it does not seem to do anything for me. Thanks.
14th Dec 2021, 9:31 PM
Chris
Chris - avatar