+ 1

How do you use the align:center command in HTML?

27th Oct 2019, 3:50 AM
Hailey
2 ответов
+ 1
I tried and its not working? I'm trying it for a header, is it different?
27th Oct 2019, 4:06 AM
Hailey
+ 1
You probably want to align the title itself in the middle of the page, then set the width of the title and then margin: 0 auto, the fact is that the align: center property aligns the text in the center of the title and the title itself can on the right of the page or on the left. that is, with the margin property, you align the position of the header in the html page, this did not work out for you. These are tricky moments in which many get confused.
27th Oct 2019, 6:13 AM
Anna/Аня
Anna/Аня - avatar