Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

CSS

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! :)