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.


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