pixels and percentage is what different? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

pixels and percentage is what different?

20th Jun 2016, 11:02 AM
jeff
jeff - avatar
3 Answers
+ 4
percentage is relative to the browser size so it will resize if the browser is shrunk. With pixels it wont.
20th Jun 2016, 11:25 AM
Alex Wood
Alex Wood - avatar
+ 1
pixels are also dependent on screen size. a 100% size will always fill it's container (assuming 0 padding) objects sized by pixals will only fill a container if set to the same number of pixels as it's container.
23rd Jun 2016, 11:35 AM
josh mizzi
josh mizzi - avatar
0
thank you ...bro
23rd Jun 2016, 1:49 PM
jeff
jeff - avatar