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 Sass Basics (retired) Advanced Sass Concepts Working with Media Queries

Safari Doesn't Respond to Media Queries

When I resize my browser (Safari) down to 480px, the changes do not take into effect. The sidebar doesn't go on the top and the background colour doesn't change red. On Chrome however, it works perfectly. What's causing this?

3 Answers

Jonathan Grieve
MOD
Jonathan Grieve
Treehouse Moderator 91,253 Points

A quick look on caniuse.com tells me that Media Queries have full support across all the browsers.

What version of Safari do you run? :-)

I figured it out! :)

Safari doesn't resize down to 480px which is why my media query for max-width:480px wasn't showing up. Not sure if this is just with the latest version of Safari on Yosemite. I remember being able to resize it smaller...

Anyway... All good now!

Dan Henning
Dan Henning
8,691 Points

Actually, Safari does have some issues responding to media queries (esp. if one zooms in on the web page). For example, you can hide logo / company name when the viewport is narrow to minimize overlap with navigation. However, Safari on Windows may not respond correctly. It behaves as though the media queries are ignored. On the other hand, it responds like other browsers at 100%.