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 CSS Layout Basics CSS Layout Project Adding Media Queries for Large Screens

Lisa Drevillon
seal-mask
.a{fill-rule:evenodd;}techdegree
Lisa Drevillon
Front End Web Development Techdegree Student 7,581 Points

Hi, I am following the solutions step by step, but the media query isn't working. Can explain help explain why?

'''css @media all (min-width: 769px) {

.container { width: 90%; margin: 0 auto; }

.name { float: left; }

.main-nav { float: right; }

.main-nav li { display: inline-block; margin-left: 15px; }

/* ---- Float clearfix ---- */

.clearfix::after {
    content: " ";
    display: table;
    clear: both;
}

} '''

3 Answers

If you change

@media all (min-width: 769px)

to

@media (min-width: 769px)

is it what you were expecting?