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 CSS: Cascading Style Sheets Use ID Selectors

Marc Martinez
Marc Martinez
12,909 Points

why do i still have bullets by my pictures.Also my h1 header isn't being centered and my margins aren't working.

basically all of my css isn't working and I'm not sure whats wrong

Grace Kelly
Grace Kelly
33,990 Points

Hi Marc, could you post your code so we can see what's the issue?

1 Answer

Tom Checkley
Tom Checkley
25,165 Points

It's hard to say without being able to see your code!

To remove the bullets you need to use

#the-id-of-the-ul-element{
  list-style: none
}

also bear in mind that you could just target the ul, though this might not be advisabe if you had numerous ul's on your site (which you normally do!) and wanted to keep some as bulleted lists.

ul's also always have a margin and padding so you probably need to reset this with

#the-id-of-the-ul-element{
  list-style: none
  padding: 0;
  margin: 0;
}

Hope this helps, try editing the question with the code you have written.

you need to put it between (3 x the backwards apostrophe, next to left shift on mac, just below esc on windows keyboard) then the name of the language you're writing e.g. css then close it with another 3 backwards apostrophes. There needs to be a clear line between the opening and closing Check out the markdown cheatsheet linked near the bottom of the page.

Tom Checkley
Tom Checkley
25,165 Points

sorry this answer is getting mucked up because the forum is seeing 3 x ` and thinking I'm writing a code block. I hope it's still clear what i mean about posting code on the forum. Check out Chalkers' tips video and the markdown cheatsheet linked below!