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

Remove the list item markers in the ul.

What's wrong with the below code, it keeps on saying me error.

li { list-style-type: none; }

5 Answers

Patrick Gerrits
Patrick Gerrits
14,614 Points

The title or your forum post is giving the answer. It is not the List Item that show button but the container holding it. So in css use the .... selector.

Patrick Gerrits
Patrick Gerrits
14,614 Points

Because you only need to select the UL. not the LI.

ul list-style-type: none; }

is enough.

ul, li { ist-style-type: none; }

The above did work with a "Comma" when added, i am curious what's wrong with the code of mine and also why does the below too not work.

ul li { ist-style-type: none; }

Clinton Hopgood
Clinton Hopgood
7,825 Points

Needs to be applied to the ul, so when you comma separate it does apply to ul but also to the li which isn't required.

ul {list-style-type: none; }