Welcome to the Treehouse Community
Looking to learn something new?
pat barosy6,759 Points
percent v pixels
I would really like some explanation as to why the presenter sometimes uses percentages for elements like padding then also uses values like pixels for padding. What's the rationale?
Max Senden23,141 Points
Percentages scale according to the width and/or height of your screen. Pixels have fixed values that can only be adjusted in the CSS by using media queries. These queries tell the website to adjust those fixed values to other fixed values depending on the screensize of the user/visitor.
Hope it helps! Max