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 trialMark Richards
6,795 PointsWhat are the percentages decimals so long?
I get that the width, width and margin add up to 100%, but why not have a margin of 2%, then width of 65.33333333 and 32.66666666? I sure it's obvious, but if someone could explain to me please? :)
2 Answers
Andrew Molloy
37,259 PointsI think it just comes down to looking right on screen and nothing more fancy than that. 2% margin would actually look quite off putting. It's exactly these kinds of things (repeating decimal numbers) that can more easily be handled with Sass where you can use calculations and fraction expressions rather than have to write out these ridiculous numbers.
Mark Richards
6,795 PointsThanks Andrew. That makes sense and thanks for the tip on Sass. I'll be moving on to that soon.