Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community!

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial


Rohit Ukirde
Rohit Ukirde
10,453 Points

can anyone explain , how padding values : 100px 120px were converted to 18% 24%; Confused!!

1 Answer

james south
.a{fill-rule:evenodd;}techdegree seal-36
james south
Front End Web Development Techdegree Graduate 33,271 Points

he's not converting them, they are just percentage values for padding that allow the padding to adjust with the width of the container, which is adjusting with the width of the browser window. when padding values are in pixels, they are fixed and do not adjust, so it's just a change to make the padding relative to the container width.