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

18th Jul 2020, 3:50 AM
Abhishek Kudlur
10 odpowiedzi
+ 14
For all window size, better u can use Meta tag
18th Jul 2020, 4:06 AM
ÃKR
ÃKR - avatar
+ 13
Increase the value of top
18th Jul 2020, 4:01 AM
ÃKR
ÃKR - avatar
+ 7
Replace line 7 by <div id="loader" align="center"> OR Use CSS text-align:center;
18th Jul 2020, 3:53 AM
ツSampriya😘ツ
ツSampriya😘ツ - avatar
+ 7
Yes do what ÅKR is saying
18th Jul 2020, 4:02 AM
ツSampriya😘ツ
ツSampriya😘ツ - avatar
+ 7
Set top:50%; Then it will be same for all screen sizes
18th Jul 2020, 4:05 AM
ツSampriya😘ツ
ツSampriya😘ツ - avatar
+ 5
Okk Set margin from top in css
18th Jul 2020, 3:59 AM
ツSampriya😘ツ
ツSampriya😘ツ - avatar
+ 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.
18th Jul 2020, 3:58 AM
Abhishek Kudlur
+ 1
ÅKR Priyanshi💞 got it.. Will it be the same for all window sizes
18th Jul 2020, 4:04 AM
Abhishek Kudlur
+ 1
Priyanshi💞 Okay... Thanks
18th Jul 2020, 4:06 AM
Abhishek Kudlur
+ 1
ÅKR okay I will see it Thanks
18th Jul 2020, 4:07 AM
Abhishek Kudlur