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 trialMary-ashley Holtz
2,398 Pointsinline-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>
Mary-ashley Holtz
2,398 PointsThank you! I did not even see that error. I appreciate it!
1 Answer
Patrick Hager
15,539 PointsAlso, 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
2,398 PointsThank you Patrick, I was able to fix my error!
James Cirkl
13,998 PointsJames Cirkl
13,998 PointsYour class nav li says" nave li"