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 Creating Flexible Margins


i'm having problems with this margin should it be 10/800 = 0.0125 ???

if so its not working ?

2 Answers

James Ingmire
James Ingmire
11,901 Points

When setting flexible margin on an element, your context is the width of the element's container. When setting flexible padding on an element, your context is the width of the element itself.

Target / Context (so the target is the width of the elements container DIVIDE BY the margin. It looks like you have done it correctly but you need to convert it into a percentage: 1.25%; Hope it helps.

yes, you are right, i completely forgot about it. Tnx James :)