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.


Need help on Responsive Website Creating >> Creating Flexible Margins


I'm having trouble getting past this second question of converting a px margin to %. I believe I'm doing the equation right, which is: Target / Context = Result 10px / 640px = .0156 = 1.56% but it's not working. I'm dividing by the context which is the next box up, the cake width of 640px.

Any thoughts? http://screencast.com/t/g7TxhdWU

3 Answers

Nathan Hare
Nathan Hare
26,540 Points

Ronando Long You need to use all the decimal places

Hope this helps solve your problem.

Yeeeup! That did it. Who woulda thought that I needed all them digits. Thanks Nathan! http://screencast.com/t/kHwGK845QL0N