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 Styling Web Pages and Navigation Style the Portfolio

Muhammad Sohaib
Muhammad Sohaib
1,819 Points

removing bullets from picture in list items

Hi,

How to remove the bullet from, pictures in gallery. I used below code in css (unordered list) but the bullet is still present.

galllery {

margin:0; padding:0; list-style: none;}

Thanks

You need to add an identifier to gallery either #gallery if it's an id or .gallery if it's a class.

3 Answers

Hi

Seems there are two issues on your selector. If gallery is the id of your UL then your code should have #gallery as selector and if its class u should use .gallery:

gallery {

margin:0; padding:0; list-style: none;}

ALSO CHECK THE SPELLING OF YOUR SELECTOR. You used gaLLLery

Muhammad Sohaib
Muhammad Sohaib
1,819 Points

yep! you right. but still the bullets is there.

gallery {

margin:0; padding:0; list-style: none; }

http://port-80-scnkwlah2c.treehouse-app.com/

Hi

Inspected the element gallery in your and there is no styling for the gallery id. Maybe you need to save your css code before opening the page.

gallery {

margin: 0; padding: 0; list-style: none; }

Mine is behaving well. If it fails, can u copy your html and css to your next comment. you might be having a typo somewhere.

Muhammad Sohaib
Muhammad Sohaib
1,819 Points

Got it. put the the list-style property in #gallery instead of #gallery li. Thanks.