In HTML5, would px change sizes on different monitors? | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
+ 2

In HTML5, would px change sizes on different monitors?

If I had a 200 pixel and a 20 pixel monitor, and I set an image to be 20px on my html5 file with my big monitor, would it shrink if I were to view the website on my smaller monitor or would it take up the while screen?

14th Feb 2019, 1:49 PM
Cheese Burger Joe
Cheese Burger Joe - avatar
2 Réponses
+ 2
It will take up the whole screen but you can scroll down/right
16th Feb 2019, 10:01 AM
Humarci16
Humarci16 - avatar
+ 2
Yes, you can. Just write in percent. Example: width="100%". Picture automatically use AutoScalling factor.
25th Feb 2019, 2:07 PM
Aleksandar Nedeljkovic
Aleksandar Nedeljkovic - avatar