+ 2

Web page size Problem

I make a webpage on computer it runs correctly on my browser But when I upload the code on sololearn everything not according to their position How can I make the same view on Sololearn mobile code playground as I see on my browser? Check the given page:- https://code.sololearn.com/W7XDyveasnu0/?ref=app

22nd Jun 2019, 8:14 PM
Saad Saleem
Saad Saleem - avatar
7 Respuestas
+ 2
To make scalable websites, you should only use relative values (%, vh, vw)
22nd Jun 2019, 8:26 PM
Airree
Airree - avatar
+ 5
Airree yes I know thank you so much
22nd Jun 2019, 8:46 PM
Saad Saleem
Saad Saleem - avatar
+ 4
Johan Cruyff I will try
23rd Jun 2019, 5:45 AM
Saad Saleem
Saad Saleem - avatar
+ 2
Airree cannot understand where to use these symbols Why I cannot use px Or Can you identify some of the places in this code
22nd Jun 2019, 8:29 PM
Saad Saleem
Saad Saleem - avatar
+ 2
A computer's screen has more pixels than a phone's screen. So maybe on the phone's screen 10px is the 10th of the phone's screen width, but it is a really small part on a monitor. % gives you most of the time the container's corresponding value (100% is the whole, obviously); vh gives you a percentage value of the screen height (26vh is 26% of the screen height). vw does the same with the screen width
22nd Jun 2019, 8:40 PM
Airree
Airree - avatar
+ 2
Airree I understand now So where I put Padding : 10px; So I have to change it to vh
22nd Jun 2019, 8:44 PM
Saad Saleem
Saad Saleem - avatar
+ 2
Yes, but not 10vh, because I'm pretty sure your screen height wasn't 100 pixels
22nd Jun 2019, 8:45 PM
Airree
Airree - avatar