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 Unused CSS Stages Media Queries Adaptive Layouts with Media Queries

how does Guil know the values of the percentages?

Where is he getting the values for percentages?

1 Answer

Andrew Dunn
Andrew Dunn
14,718 Points

I did a quick Google search because I keep forgetting the answer to this (my brain doesn't like absolute percentages with decimal points at the end :P ) - the first result, go figure, was an old Treehouse video featuring the lovely Allison Grayce: http://teamtreehouse.com/library/build-a-responsive-website/creating-a-fluid-foundation/converting-pixels-to-percentages-2

Basically, it's the target divided by context equals the result...

So if your column is optimally 300 pixels wide (for whatever reason) and its container is 1000 pixels wide, your column would have a width of 30%.

Hope this helps!

cool thanks. that helps