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

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.