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.

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

Matt Miller
Matt Miller
552 Points

Why did my bullets disappear on one unordered list once I brought in normalize.css but not the one containing the images

Bullets went away for the nav unordered list, but not the gallery

3 Answers

Damien Watson
Damien Watson
27,419 Points

Hi Matt,

In the 'nomalize.css' file at line 316, the 'list-style' is set to 'none' for 'nav ul, nav ol'. This means it is only applied to an unordered list or ordered list that is inside a 'nav' element.

As your images are in an 'ul' which is not inside a 'nav' element, this css is not applied to them.

nav ul,
nav ol {
    list-style: none;
    list-style-image: none;
}

#gallery li {
  list-style: none;
}
Francis N
Francis N
10,376 Points

to fix this just add li like so,

nav ul,
nav ol,
li {
    list-style: none;
    list-style-image: none;
}
Damien Watson
Damien Watson
27,419 Points

Hi Francis,

This will set all 'li' elements in the site to have no list-style, which is not ideally what you want to do. You should target the specific elements to change from the 'normal' so that bullet points still appear in your lists when you want them.

I have added to my answer above on how you would go about fixing this for Matts example.

Francis N
Francis N
10,376 Points

Thanks for double checking and correction, Damien Watson !