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

Krystel Hagan
Krystel Hagan
4,731 Points

Help with Responsive Design!

I have typed the code correctly, as shown in the video, and it is still asking me if I set 'clear:left.' I am not sure where I am missing something or how to correct this,

3 Answers

Try #gallery li:nth-child(4n) { clear: left; } --> no space between child and (4n)

Krystel Hagan
Krystel Hagan
4,731 Points

Q: Inside the media query, clear the left side of every 4th list item in the gallery.

A:

#gallery li:nth-child (4n) { clear: left; }

Krystel Hagan
Krystel Hagan
4,731 Points

I am not sure exactly what I am doing wrong though.