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

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 !