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

Need Help with Media queries challenge

Can't find what I`m doing wrong, can anyone help please with this challenge? Under "Tablets to Desktop," create a new media query that floats .logo left and .main-nav right if the viewport is 769px or wider. Then, add all other "Tablets to Desktop" rules inside the media query. Finally, create a new property inside the .extra rule that displays it as a block element.

/* Phones to Tablets */

@media screen and (min-width: 481px) { .col { float:left; }

.main { width: 65.957446808511%; } .secondary { width: 31.914893617021%; } .secondary, .extra { margin-left: 2.127659574468%; }

/* Tablets to Desktop */

@media only screen and (min-width: 769px)
{

.logo { float: left; }

.main-nav { float: right; }

.main

{ width: 40.425531914894%; }

.extra { width: 23.404255319149%; display: block; }

}

2 Answers

Nicole H
Nicole H
2,981 Points

It looks like you may have left out the closing curly bracket under the Phones to Tablets media query:

/* Phones to Tablets */

@media screen and (min-width: 481px) { 
   .col { 
      float: left; 
   }

   .main { 
      width: 65.957446808511%; 
   } 

   .secondary { 
      width: 31.914893617021%; 
   } 

   .secondary, .extra { 
      margin-left: 2.127659574468%; 
   }
}

Thank you very much