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

HTML How to Make a Website Creating HTML Content Include External CSS

Eric Burgasser
Eric Burgasser
300 Points

Why are my unordered lists still bulleted?

Nick mentioned that the unordered list bullets should be gone. My bullets are all gone with the exception of the images we put in. Why haven't these bullets gone away?

6 Answers

Hi Eric,

As you'll see in the next video, Nick still has the bullets too for the images.

The version of normalize in this project only removes bullets from lists that are within a nav element. So they go away for the navigation but not the gallery.

In an upcoming video Nick will show you how to remove those bullets. You'll end up using list-style: none; as others have pointed out.

Karl Rombauts
Karl Rombauts
9,106 Points

Ok so the the styling of your list is found in the you stylesheet (CSS) document. In order to turn off the bullet points you can use 'list-style-type'

for example (turning off the bullets for all un-ordered lists:

ul{
  list-style-type: none;
}

or you can use a more specific selector to turn off the bullets for just the navigation like so:

nav ul{
  list-style-type: none;
}

Also you have a small mistake in your html. make sure you use 'ul' instead of 'uL' in the inside of the <section> tags. I hope that helps :)

Perhaps you could share your code?

Eric Burgasser
Eric Burgasser
300 Points

<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Eric Burgasser | Photographer</title> <link rel="stylesheet" href="css/normalize.css"> </head> <body> <header> <a href="index.html"> <h1>Eric Burgasser</h1> <h2>Photographer</h2> </a> <nav> <ul> <li><a href="index.html">Portfolio</a></li> <li><a href="about.html">About</a></li> <li><a href="contact.html">Contact</a></li> </ul> </nav> </header> <section> <uL> <li> <a href="img/numbers-01.jpg"> <img src="img/numbers-01.jpg" alt=""> <p>Experimentation with color and texture</p> </a> </li> <li> <a href="img/numbers-02.jpg"> <img src="img/numbers-02.jpg" alt=""> <p>Playing with blending modes in photoshop</p> </a> </li> <li> <a href="img/numbers-06.jpg"> <img src="img/numbers-06.jpg" alt=""> <p>80's style</p> </a> </li> <li> <a href="img/numbers-09.jpg"> <img src="img/numbers-09.jpg" alt=""> <p>Drips created using photoshop brushes</p> </a> </li> <li> <a href="img/numbers-12.jpg"> <img src="img/numbers-12.jpg" alt=""> <p>creating using photoshop</p> </a> </li> </uL> </section> <footer> <a href="https://twitter.com/ericbofohio"> <img src="img/twitter-wrap.png" alt="Twitter Logo"></a> <a href="https://www.facebook.com/eric.burgasser"><img src="img/facebook-wrap.png" alt="Facebook Logo"></a> <p>© 2016 Eric Burgasser.</p> </footer> </body> </html>

The code for your unordered list should look like this:

nav ul {
  list-style: none;
  margin: 0 10px;
  padding: 0;
}

EDIT: Also, you used uL instead of ul in your HTML code.

Eric Burgasser
Eric Burgasser
300 Points

A big thanks to everyone!