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

question

The question is asking me to put clear: left; on every 4th list item but there is only 2 list items I don't know what to do.

5 Answers

hi

Roscoe Coney
Roscoe Coney
13,124 Points
  1. Maybe add two more list items
  2. add clear: left on every 2 list items
  3. Re-watch the video pertaining to that question, because you usually just do the same exact process as Nick.
  4. Maybe there is a software error and just re-start the coding questions
Roscoe Coney
Roscoe Coney
13,124 Points

<html> <p background-color: black;></p> </html>

I just tried all of that and it didn't help

Matthew Mascioni
Matthew Mascioni
20,444 Points

Hi Peter,

You're right, it is asking you to clear: left every fourth list item. There is a CSS pseudo selector that can help us accomplish this. You're going to learn it down the road anyway (it's part of the Front-end Web Development track which I believe you're on) and if you haven't already, and it is the :nth-of-type() selector. Guil explains it very well in this video.

After viewing that video, if you still have questions, I'd be happy to help :)