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 trialJamie Touton
7,051 PointsSelect the element with the ID gallery. Then, remove the margin, padding, and bullet points.
Select the element with the ID gallery. Then, remove the margin, padding, and bullet points. I have coded it like this and it won't accept it... not sure why?? gallery ul { list-style-type: none; padding: 0px; margin: 0px; }
3 Answers
Kevin Kenger
32,834 PointsHey Jamie,
To target an element using its ID you need to use the hash symbol or pound sign (#
) – whatever you want to call it. So your selector would be #gallery
. Also, you're targeting an unordered list inside of the element, and you don't need to do that. The code should ultimately look like this:
#gallery {
margin: 0;
padding: 0;
list-style: none;
}
Adam Webster
24,978 PointsTo select the ID, you have to use the hash symbol. So, if you type it as: #gallery ul {blah: blah blah;}, it will select the HTML item with the ID of "gallery".
Jamie Touton
7,051 PointsThanks! I completely over looked that.