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

Responsive web design - Media Query

I have created a media query for a Samsung Galaxy S3, on my mac when I view the site with the samsung dimensions it looks fine but when i view it in my phone (samsung galaxy s3) it looks different, the images are slightly push to the left. Could someone please explain to me why this is?

2 Answers

Can we see the relevant code? Have you tried it in different browsers?

``` @media screen and (device-width: 320px) and (device-height: 640px) and (-webkit-device-pixel-ratio: 2) { .main-nav li { margin-top: 12px; background-color:#EBE6E8; border-radius: 10px; } }

 @media screen and (device-width: 320px) and (device-height: 640px) and (-webkit-device-pixel-ratio: 2) 
{ .main-nav li { margin-top: 12px; background-color:#EBE6E8; border-radius: 10px; } }