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 Media Features and Media Types

Jeremy Frimond
Jeremy Frimond
14,470 Points

Media Queries on Local Host Server

Hi,

When I edit my project on a local host, via mamp, the media queries do not register; however, when I access the files just from my desktop (and not from a localhost server) the media queries activate. Any idea why this happens?

Guil Hernandez

Regards

4 Answers

You can check if you have linked the css file correctly to your HTML file.

Jeremy Frimond
Jeremy Frimond
14,470 Points

the whole site has been styled I am going in now to put some finishing touches on the breakpoints which work fine when not accessing the site page via a local host

What was the problem if you don't mind me asking. All my queries and style work when I look at them just locally off of my computer. However when I look at it once it is hosted, some of my queries are accepted and others do not work. Same exact files for the locally hosted stuff and hosted stuff.

What was the problem if you don't mind me asking. All my queries and style work when I look at them just locally off of my computer. However when I look at it once it is hosted, some of my queries are accepted and others do not work. Same exact files for the locally hosted stuff and hosted stuff.