+ 4
How do i align center
8 Answers
+ 11
https://www.sololearn.com/learn/HTML/1029/
You can learn it here too.
+ 7
In HTML, there is an attribute called align.
This attribute accepts one of three values:
- left
- center
- right
-----
It actually depends on what you want to align.
I would suggest, just for safety, that you do the following:
<div align="center">
<!-- Code goes here -->
</div>
The reason for the above is because if you want an image to be aligned, you can't add align to the <img> tag.
+ 2
CSS Pro Tips : Centering Elements by Domino
https://www.sololearn.com/post/37760/?ref=app
+ 1
Edwin Pratt please use CSS for styling.
0
ÙÙÙ
0
Thanks all
0
you can either use the html way (align="center") or the css way (style="text-align: center;"). Both of these are added as attributes.