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 trialLisa Drevillon
Front End Web Development Techdegree Student 7,581 PointsHi, 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
KRIS NIKOLAISEN
54,971 PointsIf you change
@media all (min-width: 769px)
to
@media (min-width: 769px)
is it what you were expecting?
Lisa Drevillon
Front End Web Development Techdegree Student 7,581 PointsIt seems to have worked. I have also removed Chromes' window resizer. Not sure which did the trick, but thank you for your help!
David Shulkin
Front End Web Development Techdegree Student 10,255 PointsUse: @media screen and (min-width: 769px)