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.

CSS CSS Foundations Advanced Selectors Pseudo-Classes: :nth-child

tamirg
tamirg
6,201 Points

Challenge 4 keeps showing an error for 30px which I have correctly input. I even restarted the challenge??

Any suggestions? I checked w/the forum and still can't move past this without completing my challenge.

4 Answers

tamirg
tamirg
6,201 Points

li:nth-child(even) { color: white; background-color: black; }

li:nth-child(3) { background: #FF6347; }

li:nth-child(-n+4) { font-weight: bold; }

li:nth-child(-n+3) { font-size: 30px; }

Jeremy Hayden
Jeremy Hayden
1,740 Points

Pls show your code so we can compare it.

Hi Tami,

It appears that you have not correctly input.

Jeff

li:nth-last-child(-n+3) {
    font-size: 30px;
}
tamirg
tamirg
6,201 Points

After looking at it over and over I finally realized what I was missing. Thank you for your help!