Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

CSS How to Make a Website Styling Web Pages and Navigation Create a Horizontal List of Links

Using the same selector as the previous step, remove the bullet points and remove the padding on the unordered list.

I'm stuck ! Any help ?

3 Answers

Adam Moore
Adam Moore
21,956 Points
nav ul{
  margin: 0 10px;
  padding: 0;
  list-style: none;
}

Setting the padding: 0 removes any padding, and the bullet points are part of the list-style, so you can set them to none to remove them.

Thanks for the help :)

Adam Moore
Adam Moore
21,956 Points

No problem! Glad I could help! :)

Can you post your code? That would make it easier for us to see what might be going wrong for you.

Irfan Setiadi
PLUS
Irfan Setiadi
Courses Plus Student 2,638 Points
nav ul {
  margin : 0 10px;
  list-style : none;
  padding: 0;
}

I had this wrote down and it keeps saying task 1 is correct. So I broke down and looked up the coding answer and i have this exact code written verbatim. Help?