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!

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


Help with media queries

I'm Stuck on the Quiz (Device-Specific Media Queries) the 1st is! The HTML meta tag that instructs a device to zoom it's layout viewport to 100% the device width: ( )

and the other is!If a device has a pixel-ratio of 2, then 1 CSS pixel is displayed as( ) physical pixel(s) on screen.

i might be out off it because i'm studying like super hard today, but for the life of me i can't figure it out!

some one please help!

First question must be an error, second question: if the pixel ratio is 2, it means that its twice the pixel density. So 1 pixel becomes ...

Guil Hernandez
Guil Hernandez
Treehouse Teacher

Hey Aaron Timmons,

I've adjusted the 1st question to the quiz –– it's much clearer now.

As for the 2nd question, a pixel ratio of 2 doubles each CSS pixel. So you'll need to multiply that 1 CSS pixel by the device-pixel-ratio.

Hope this helps :)

Thank you Guil.

I got the 2nd Q, A.O.k. Thanks for cleaning up the 1st one Guil, Love your site, and in the future would love to go in to a profession in the Web Design, i'm learning allot!

But i would like to know before Guil Hernandez changed it what the answer was, or if it jest has a error on the page!!

Guil Hernandez
Guil Hernandez
Treehouse Teacher

Aaron Timmons,

You got it. Keep up the learning!

Before I changed it to multiple choice, the correct answer had to be typed exactly like the correct multiple choice answer. But the wording was a little confusing, so I changed the format.

3 Answers

Chase Lee
Chase Lee
29,275 Points

So if there is 1 pixel for regular resolutions and the ratio is two pixels to every one pixel in retina display, what dose that equal? Sorry if that didn't make much sense, if it didn't then I'll just tell you the answer. As for your first question I just kept getting it wrong. I'll tag Guil Hernandez, he should be able to answer that.

WOW! the 2nd one is so easy after i tould a brake i'm on the same quiz again and know it is really easy!! so i think i was over thinking it

and yes i understand you!!

Chase Lee
Chase Lee
29,275 Points

Glad you were able to figure it out.

I guess he re did the question because know it is a multiple choose, the funny thing is i typed the same thing in as what he gave you as one of the multiples but it was erroring out!! and way thank you for the help guys!!