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! While you're at it, check out some resources Treehouse students have shared here.

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

CSS

Scalable images

Convert the padding on .cake from pixels to percentages.

How to change padding pixels to percentages?

5 Answers

To convert padding to a percentage take the class's padding size in pixels divided by the class's width in pixels.

Thank you!

First change it toems and then move the decimal two places to the right.

tried it still say's wrong. 0.625ems move it two places to the right!

Try moving the px size two places to the right.

Way past you thiere finnished the answer 10/600 =0.02 answer 2.00