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

HTML How to Make a Website Responsive Web Design and Testing Build a Three Column Layout

Julie Harding
Julie Harding
825 Points

My #primary and #secondary show up highlighted red and when I refresh my site it doesn't go to 2 columns.

@media screen and (min-width: 480px {

/******************** TWO COLUMN LAYOUT ********************/

      #primary {
        width: 50%;
        float: left;
      }

      #secondary {
        width: 40%;
        float: right;
      }

}

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

}

2 Answers

Tobias Helmrich
Tobias Helmrich
31,603 Points

Hey Julie,

don't forget to put a closing parenthesis after you specify the min-width. Right now you're writing:

@media screen and (min-width: 480px

without a closing parenthesis. It should look like this:

@media screen and (min-width: 480px)

Try that and see if it works, if not please let me know! :)

Julie Harding
Julie Harding
825 Points

That was it! Thanks so much...it was driving me crazy!

Tobias Helmrich
Tobias Helmrich
31,603 Points

No problem, I'm glad I could help! :)