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

Omar Bahaa
PLUS
Omar Bahaa
Courses Plus Student 1,801 Points

@media syntax

Can i just use this instead? @media(576px <= width <= 991px) { nav { float: left; margin-left: 20px; } }

2 Answers

Kyle Burns
Kyle Burns
4,300 Points

That will work. There are a wide range of ways to set media queries and many reasons to choose different options rather then the standard syntax. Check out developer.mozilla (a commonly used site by teachers here at treehouse) and do a quick search on media queries. It will give you a in depth run down of all the features (for more than I can write here).

Omar Bahaa
PLUS
Omar Bahaa
Courses Plus Student 1,801 Points

Yeah, i read a few articles through mdn, stackoverflow and w3schools and it looks like there are more than one way to write the media syntax depending on what you are targeting. Thank you for your reply Kyle.

Best regards, Omar