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 Refactor the Layout

Keep getting error

Please help don't know what I did wrong here is the code. Code challenge stage 1

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

   #gallery li {
      width: 28.3333%;
}

}
Dave McFarland
Dave McFarland
Treehouse Teacher

Your code looks good to me. Try reloading the code challenge and entering that code again.

2 Answers

Donald McLamb
Donald McLamb
2,867 Points

Did you type in the first portion

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

or use the same line of code that they gave you? (It would be at the bottom of the CSS sheet)

I would paste this

" #gallery li { width: 28.3333%; } "

in the query they provided but it looks good.

Thanks for the help I will try both solutions.