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!
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

marsha spell
Courses Plus Student 5,555 Pointshelp plzzz
Create a new rule that targets the first 4 list items only. Set the font weight to bold. here what I got li:nth-child(3n+4) { font-weight: bold; }
3 Answers

Nick Stellato
Front End Web Development Techdegree Student 33,994 PointsI am not sure what type of list you are trying to style, but here is one way to do it.
ul li:nth-child(-n+5){
font-weight: bold;
}

Nick Stellato
Front End Web Development Techdegree Student 33,994 PointsNo problem. Glad I could help. Good Luck!!!

marsha spell
Courses Plus Student 5,555 Pointsthank you!! so much i passed!
James Barnett
39,199 PointsJames Barnett
39,199 PointsNick Stellato -
Remember our goal here on the forum is give help not answers, next time try giving an explanation and/or a hint instead.
Need more explanation on the distinction check this out.
Nick Stellato
Front End Web Development Techdegree Student 33,994 PointsNick Stellato
Front End Web Development Techdegree Student 33,994 PointsSorry James. I understand now.