0
How to position a word in the center of a page?
In the following code I want the word loading appear in the center of the page(irrespective of the different screen sizes).Please help https://code.sololearn.com/WzP50gJkvpPL/?ref=app
10 Respostas
+ 14
For all window size, better u can use Meta tag
+ 13
Increase the value of top
+ 7
Replace line 7 by
<div id="loader" align="center">
OR
Use CSS
text-align:center;
+ 7
Yes do what Ă
KR is saying
+ 7
Set
top:50%;
Then it will be same for all screen sizes
+ 5
Okk
Set margin from top in css
+ 1
Priyanshiđ but that will make it appear in the middle of line and remains in the middle of the page.
I want it to be in the center if the page.
+ 1
Ă
KR Priyanshiđ got it..
Will it be the same for all window sizes
+ 1
Priyanshiđ Okay... Thanks
+ 1
Ă
KR okay I will see it
Thanks