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

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.