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

HTML Build a Responsive Website Creating a Fluid Foundation Scalable Images

Jeremy Medford
PLUS
Jeremy Medford
Courses Plus Student 16,096 Points

Code Challenge Not Working

Attempting to convert the padding for .cake. Target / Context = Result 10 / 700 = 0.0142857143

When I add this: padding: 1.428571429%;

it fails.

Did I miss something about calculating padding? We went from margins straight to images.

3 Answers

Jeremy Medford
PLUS
Jeremy Medford
Courses Plus Student 16,096 Points

Ok I got it. The padding is calculated differently than the margin. That is not actually explained in any previous videos.

Try rounding it to 1.429