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 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....

Jeff

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