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

david Ramirez
PLUS
david Ramirez
Courses Plus Student 2,798 Points

im stuck here guys whyyyy

at the bottom of the css file is a media query. Inside the media query, create a selector that chooses all list items are nested inside the element with the id of β€œgallery”. Then, inside your newly written selector, set the width property to a value of 28.3333%.

Please post the code you've written for the challenge. Otherwise we can't see where the problem might be.

Tobias Mahnert
Tobias Mahnert
89,414 Points
@media screen and (min-width: 480px) {
  #gallery li {
  width: 28.3333%;
  }

}

thats the code you have to use to pass

1 Answer

Tobias Mahnert
Tobias Mahnert
89,414 Points

if you have any more questions, please let me know