0

Hi. In html 5 the <p align=""/> attribute doesn't work. So is there any other way to align a paragraph to center of the page.

help

22nd Oct 2019, 5:42 AM
Akshay Joseph
Akshay Joseph - avatar
3 odpowiedzi
+ 2
Use text-align: center in css
22nd Oct 2019, 7:00 AM
A͢J
A͢J - avatar
+ 2
If you added width to the paragraph, then this property will not work; use margin: 0 auto; always try to add width to the text or indentation otherwise you will run a test for overflow with text content.
22nd Oct 2019, 7:28 AM
Anna/Аня
Anna/Аня - avatar
0
You can put your code here?
22nd Oct 2019, 6:55 AM
Yaroslav Vernigora
Yaroslav Vernigora - avatar