+ 1

What are the diffrent between of % and px

2nd Feb 2017, 6:43 AM
vinay
vinay - avatar
4 ответов
+ 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 ).
2nd Feb 2017, 7:25 AM
visph
visph - avatar
+ 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
2nd Feb 2017, 6:47 AM
rutger
+ 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
2nd Feb 2017, 7:17 AM
C.E.
C.E. - avatar
+ 1
%-percentage while px-pixel
10th Feb 2017, 2:29 PM
Moses Ouma
Moses Ouma - avatar