Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

CSS Unused CSS Stages Media Queries Adaptive Layouts with Media Queries

Joseph Forsse
Joseph Forsse
9,850 Points

Challenge task 3 of 3

Create a new media query that sets the width of .wrap to 980px if the viewport is 1000px or wider.

this is my code and it says Bummer! Did you specify the right width? I don't know what's wrong and some help would be great!

@media only screen and(min-width:1000px){ .wrap{ width:980px; } }

2 Answers

Sharanya Venkat
Sharanya Venkat
7,222 Points

Its @media only screen(min-width : 1000px) { ... } . There is no 'and ' after screen.

Hi Joseph,

Try this. You need a space beyween and and (min-width....


@media screen and (min-width: 1000px) {
  .wrap {
    width: 980px;