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

HTML How to Make a Website Styling Web Pages and Navigation Build Navigation with Unordered Lists

Mary-ashley Holtz
Mary-ashley Holtz
2,398 Points

inline-block error

I am unable to get the inline-block for my navigation to work. Here is my CSS code:

/*****************************************
NAVIGATION
******************************************/


nav {
  text-align: center;
  padding: 10x 0;
  margin: 20px 0 0;
}

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

nave li {
  display: inline-block;
}
Here is my HTML code: 
  <nav>
        <ul>
          <li><a href="index.html">Portfolio</a></li>
          <li><a href="about.html">About</a></li>
          <li><a href="contact.html">Contact</a></li>
        </ul>
      </nav>
James Cirkl
James Cirkl
13,998 Points

Your class nav li says" nave li"

Mary-ashley Holtz
Mary-ashley Holtz
2,398 Points

Thank you! I did not even see that error. I appreciate it!

1 Answer

Also, on you're nav, you have the padding set to "10x" I'm assuming that that's supposed to be "10px". But likely, as mentioned above, the typo of "nave" instead of "nav" is probably causing the biggest error.

Mary-ashley Holtz
Mary-ashley Holtz
2,398 Points

Thank you Patrick, I was able to fix my error!