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 trialJeremy Medford
Courses Plus Student 16,096 PointsCode 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
Courses Plus Student 16,096 PointsOk I got it. The padding is calculated differently than the margin. That is not actually explained in any previous videos.
nik
8,925 PointsTry rounding it to 1.429
Jeremy Medford
Courses Plus Student 16,096 PointsHmm, that did not work either.