+ 1
What are the diffrent between of % and px
4 Respostas
+ 3
One is absolute unit, the other relative to its parent container...
Cases of be relative to screen/display ( viewport is the most right word ) size is very particular. If we want to refer to viewport size, use modern units 'vw' and 'vh' ( respectively stand for 'viewport width' and 'viewport height', and represent 1% of it, so width == 100vh ).
+ 2
px means pixels as far as i know,
% is for percent of screen if its within a box or wrap percent of the wrap it takes up
check out this link
http://www.w3schools.com/cssref/css_units.asp
+ 2
as rutger said px is pixels and % is percentage, for example 50% is half of the screen or containter (in the corresponing direction) and 50px is 50 pixels
+ 1
%-percentage while px-pixel