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 Create a Horizontal List of Links

display to inline -block?...I dont get it..

whats wrong with my code nav li { margin: 0 10px 0 10px; padding: 0; list-style: none; display: inline-block;}

5 Answers

Hi, John. The code challenge is asking to select the list items inside the nav element. You can do that with nav li. Make sure you still have the first code block with nav ul.

nav ul {
  list-style: none;
  margin: 0 10px;
  padding: 0;
}

nav li {
  display: inline-block;
}
idan ben yair
idan ben yair
10,288 Points

Hi John,

Is it possible that you could post the link to the challenge. Your code looks fine in a first look but maybe if I take a look at the challenge I will be able to make sense of it.

Thanks.

Tommy Gebru
Tommy Gebru
30,164 Points

Hey Idan, how can a treehouse student become a moderator.?

thanks guys

idan ben yair
idan ben yair
10,288 Points

Hi teame actually treehouse usually contacts you if you are an active student in the forums and if you have over 5000 points. also you can contact Faye at: faye@teamtreehouse.com she will be able to assist you and guide you if you would like to become a moderator!

Good luck my friend :)

Tommy Gebru
Tommy Gebru
30,164 Points

Cheers, thanks for the support Idan