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 Build a Responsive Website Creating a Fluid Foundation Scalable Images

Waqar Ashraf
Waqar Ashraf
3,742 Points

What its not accepting as correct answer

padding: 0.0166666666667%;

2 Answers

Ken Alger
STAFF
Ken Alger
Treehouse Teacher

Waqar;

If you are working on the first question of the challenge, Convert the padding on .cake from pixels to percentages. the current pixel size for the .cake class is 10px. That would be the Target value in the formula from the course. The Context value would be 600px as stated in the comments for the width property in the cake class.

The formula is Target / Context = Result, right? So 10px / 600 px = 0.0166666666667. Multiply by 100 to convert to percent. You wind up with 1.666666667%.

Happy coding,

Ken

idan ben yair
idan ben yair
10,288 Points

hi waqar, can you post the question and the whole code? thanks.

James Barnett
James Barnett
39,199 Points

Since the user linked us to the code challenge (under related content in the sidebar) what we need in addition to the code they are using is to know which step of the code challenge they are on.