0

℅ vs px

width:100℅ & width:100px re-act differently on my PC, should be like that?

24th Nov 2016, 4:38 PM
Sidepocket
Sidepocket - avatar
3 Réponses
+ 3
they are completely different on their property, width:100% means the object will occupy the width of whole screen (100% of your screen), while width:100px means the object will have a width of 100 pixels. In another word, if you have a 1080p monitor, 100% will occupy full screen width, while 100px will looks....kinda small in the top left corner
24th Nov 2016, 4:45 PM
ThisTNTSquid
ThisTNTSquid - avatar
0
Ok thanks a lot man.
24th Nov 2016, 4:47 PM
Sidepocket
Sidepocket - avatar
0
100% is 100% of your screen but 100px is just pixels of your screen if you have 1000px screen 100px is just 10% of your screen where as 100% covored your whole screen
24th Nov 2016, 5:36 PM
Dhruv Saxena
Dhruv Saxena - avatar