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

Need help on Responsive Website Creating >> Creating Flexible Margins

Hey,

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