+ 3
How to align text to center
8 odpowiedzi
+ 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
+ 3
Or you can use the center tag
<center> </center>
+ 1
you can just use align=“center” attribute in almost any tag
+ 1
If in html,you can use <p text align="center">
0
<p text align="center" >text<p>
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.