+ 4

How do I align everything in the page in center??(responsive)

I need help regarding responsive alignment

22nd Jun 2021, 7:56 AM
Anas Dharar
Anas Dharar - avatar
4 odpowiedzi
+ 3
you can use an old way use <center> tag (though its obsolete now). or else use flex just like this: https://code.sololearn.com/W6jcxzycdG2l/?ref=app
22nd Jun 2021, 8:49 AM
Prashanth Kumar
Prashanth Kumar - avatar
+ 2
to horizontal center, use css text-align:center; to both direction center, use css display:flex; container, and apply flex properties according to your needs ;)
22nd Jun 2021, 8:00 AM
visph
visph - avatar
+ 1
#id{ text-align:center; }
22nd Jun 2021, 8:30 AM
Shadoff
Shadoff - avatar