+ 3

Px and %

what exactly mean px and what is the difference between px and %?

12th Jun 2017, 7:51 AM
Avani Anjankar
Avani Anjankar - avatar
2 Antworten
+ 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
12th Jun 2017, 8:13 AM
Russel Reeder
Russel Reeder - avatar
+ 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.
12th Jun 2017, 8:11 AM
Madera Oxidada
Madera Oxidada - avatar