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


Pablo Grippo
Pablo Grippo
25,765 Points

Build a Responsive Website > Creating a Fluid Foundation > Scalable images

I can´t do the Code Challenge, where it says:

Convert the padding on .cake from pixels to percentages.

I´m using the formula Target / Context = Result like so:

10 / 700 = 1.42%

What is the exactly percentage that I have to use? Please help me!

Thanks in advance!

1 Answer

Can you link to the part your stuck? P.S make sure you don't round up or down

Hello, In this case, the context of the cake should be 600px. 10/ 600= 0.016666666* (?) This will give you percentage of 1.66666%.

Pablo Grippo
Pablo Grippo
25,765 Points

Thank you very much Miranda Lee! Now, I can continue working on these. Thanks! :)