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

Almost have my CSS Foundations Badge, but got stuck on this

I know this question has been asked before but still can't figure this one out:

Under "Phones to Tablets," create a media query that floats the ".col" elements left if the viewport is 481px or wider. Then, add all other "Phones to Tablets" CSS rules inside the media query.

I tried

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

then I copied and pasted all other CSS rules before last bracket but didn't pass...kept asking me if I made sure I floated it left. I have no idea what I'm doing wrong.

2 Answers

well if what you show above is what you put in, then you are missing a closing bracket. It should read:

@media screen and (min-width: 481px) {
    .col {
        float: left;
    }
    ...all other declarations
} /*don't forget to close the media query with this bracket*/

Thanks Aaron! :-)

Anytime bud glad I could help