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 How to Make a Website Customizing Colors and Fonts Pick Fonts and Set Relative Units

Unordered Lists in Tutorial

I wanted to turn off bullets next to the images in the tutorial web page but couldn't seem to do this using the "text-decoration" directive. A W3C CSS reference provided one possible solution I.E. <ul class="a"> then create a CSS entry "ul.a {text-style-type: none;}" This removes the bullets for the specific list which is what I wanted to do. Is there a better, alternative, or recommended way?

2 Answers

Stone Preston
Stone Preston
42,016 Points

you can use list-style: none; to remove bullets from lists

ul {
    list-style: none;
}

if you want to remove it from a specific list just give your list a class and target lists with that class

ul.imageGallery {
    list-style: none;
}

Great, thanks.