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.

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

Build a Three Column Layout

nothing changes on my page still the same need help :/

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

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

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

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

/*************************** PAGE: PORTFOLIO ***************************/

gallery li {

width: 28.3333%;

}

gallery li:nth-child(4n) {

clear: left;

}

}

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

}

2 Answers

Tobias Helmrich
Tobias Helmrich
31,601 Points

Hey Dalia,

you have to add a colon after min-width in the media query, you did it in the second one but in the first media query it's missing. Like so:

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

Try it out again after you changed it and hopefully it will change then, good luck! :)

what you mean I'm confused now

Tobias Helmrich
Tobias Helmrich
31,601 Points

In your first media query you wrote

@media screen and (min-width 480px)

behind min-width you have to add : like so

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

thanks for your help

Tobias Helmrich
Tobias Helmrich
31,601 Points

No problem, could you fix the issue?