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

Any help with this problem

I put the details correctly according to the training but I still getting failed code.

Hi Amed,

Can we see your code?

2 Answers

Thank you for the answer, I managed to solve the problem.

Without seeing your code it's hard for any of us to help you. However a typical horizontal list of links would be as so. Make sure you have all your semi colons, curly brackets closed and markup is correct as well.

<ul class="nav">
  <li><a href="#">Nave One</a></li>
  <li><a href="#">Nave Two</a></li>
  <li><a href="#">Nave Three</a></li>
  <li><a href="#">Nave Four</a></li>
</ul><!--// nav-->
ul.nav{
        position:relative;
}
ul.nav ul{}
ul.nav li{
        float:left;
        display:inline;
 }
 ul.nav li a{
    display: block;
    padding:6px 10px;
    text-align: center;
    text-decoration: none;
    color:#00aeff;
    font-size:12px;
    background:#f7f7f7;
    margin-left: 2px;
}
ul.nav li:first-child{margin-left:0;}