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 Text, Fonts, and Lists List Styles

Fedor Andreev
Fedor Andreev
6,438 Points

A question about this quiz?

Add marker.png located inside the img folder as a background image to the list items.

To pass this one you need this code

ul {list-style-type: none;}ul li {list-style-image: url('marker.png');}

But before I wrote this code like this

ul {list-style-type: none;} list-style-image: url('marker.png');

Without the abbr. of li and I still passed it!

And when the third question came i wrote down the 20px.. e.t.c and couldn't pass! It was only until I found out I had to add li to it to pass! Why in question 2 did i not need the li (list) abbr?

2 Answers

James Barnett
James Barnett
39,199 Points

Looks like you found a bug in the code challenge.

If you want to help Treehouse improve this code challenge, there's a submit feedback button at the end of every code challenge where you can tell the Treehouse team about any issues you ran into when working on a code challenge.

I'm stumped as to why. But as I understand CSS markup, elements (ul li), rules (#h1), and classes (.heading), are always paired with attributes and their values, which are place inside { }. Perhaps someone else can give a better explanation but this is how I remember how CSS is written. The first on looks correct to me.