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

Scalable Images

I am having trouble in the last quiz of this section. It asks me to convert the padding of 10px to percentage. According to what I have learned here the formula is Target/Context = Result. The target is 10px, the context is 700px, which equals 0.0142857142857143. I carry the point over two places to the right and the result would be 1.42857142857143. However it says that it is wrong. I have enter the following values and it still says the answer is wrong. 0.0142857142857143, 1.42857142857143 1.428571428 , 1.428571429.

2 Answers

Er.. have you tried 1.43?

Reuben Varzea
Reuben Varzea
23,182 Points

Not sure if you finally got this one, but if not… when figuring out context of margin, we look to the parent for that (which I believe is the 700px you're referring to [for icing?]). Padding, though is internal so you'd be looking to derive context from the same element you're applying the change to (which I believe is the .cake class). So use that .cake class width as your context.