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 Make a CSS Image Gallery

margin and padding

how do you Select the element with the ID gallery. Then, remove the margin, padding, and bullet points.

4 Answers

Andrew Shook
Andrew Shook
31,709 Points

You need to put:

#gallery{

}

And then put the code for the padding, margins and list style inside of it.

to select the ID gallery use #gallery In order to help you with the rest of your question we will need to see the code your working on. If you want to remove the bullet points for a list item you can use ul { list-style: none; } this will remove all the default style for list items. Just upload your code and I'm sure we can help you out more.

Jean Paiva
Jean Paiva
7,128 Points

Try this: #gallery { margin: 0; padding: 0; } #gallery ul { list-style: none; }

Andrew Shook
Andrew Shook
31,709 Points

Well if you're going to just give him the answer its actually this:

#gallery { 
    margin: 0; 
    padding: 0; 
    list-style: none; 
}