+ 3
Px and %
what exactly mean px and what is the difference between px and %?
2 Respostas
+ 6
px means pixels, % is percent of the page or the parent element. U can also use em, vh, vw, and vmin to resize things. Check out a Google search or w3schools.com, there will be plenty of info I'm sure
+ 2
With % the width is calculated relative to the parent elements width.
1 px is just an absolute minimum value, so its not relative to anything.