0
Difference between px & % in CSS3
When we use 10px & 10% them it will display different output. How px & % actually work? Elaborate it with example.
1 Answer
+ 2
px is a âfixedâ unit of measure - itâs unit size is based on the actual number of pixels on device screen and will always occupy that many pixels regardless of its parent tagâs size.
%Â is known as ârelativeâ units - it auto-resize according to his âparent tagâsâ unit size.
https://www.quora.com/What-are-the-differences-between-px-em-and-in-CSS-Which-one-should-I-use-and-why