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

Justin Schwartz
Justin Schwartz
3,509 Points

A more reliable way to set up media queries?

I am coding a website Mobile First style and have set up some media queries so when the window is wider the navigation changes. I have made a jsfiddle showing my code. For some reason on the jsfiddle when i resize the width of the result section the navigation changes in a different way than when I view it in google chrome. I am looking for a more reliable way to code my media queries so that i don't have any stacking navigation link problems but at the same time make the navigation adjust well when the window is resized. Also for some reason when viewing on Google Chrome (the only browser i've tested it on) when I expand the window it adjusts perfectly but when I contract the window it has link stacking problems and my logo gets stretched width-wise. JSFIDDLE: http://jsfiddle.net/Justinms1000/7k5Hu/

Could you possibly show us an example, or maybe the fiddle link?

Justin Schwartz
Justin Schwartz
3,509 Points

Wow I can't believe I forgot to put the jsfiddle link! Sorry I will add the jsfiddle link tomorrow morning.

Justin Schwartz
Justin Schwartz
3,509 Points

It really would be best if you copied the html and css into a text editor like brackets or text ++ to test it out in chrome or safari because in the jsfiddle it acts differently and I'm assuming it is acting differently because I don't have the normalize.css on the jsfiddle because I'm not sure how to add css sheet to it.

1 Answer

Caroline Hagan
Caroline Hagan
12,612 Points

Hey Justin Schwartz I often find developing on a server (shared hosting) online, makes it a lot easier to test and share if in trouble.

However if you want to ZIP up your project and post up a link to download it, I'll check it out locally to see if I can determine the problem.