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 trialMatt Miller
552 PointsWhy 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
27,419 PointsHi 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
10,376 Pointsto fix this just add li
like so,
nav ul,
nav ol,
li {
list-style: none;
list-style-image: none;
}
Damien Watson
27,419 PointsHi 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
10,376 PointsThanks for double checking and correction, Damien Watson !