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
John Cato
2,565 PointsWeb Siting
Needing some help with my CSS validator. When I attempt to validate my CSS this is the error that I receive and I'm not sure why:
80 nav ul Value Error : margin Parse Error margin 80 nav ul Parse Error 0 10px; 90 Parse Error [: 0; } /*************************** this makes my navigation horizontal instead of vertical. ******************************/ nav li]
Here's my code for lines 78-82:
nav ul {
list-style: none;
margin; 0 10px;
padding: 0;
}
Here's my code for lines 90-92:
nav li {
display: inline-block;
}
Trying to figure out what I did wrong? Thanks in advance!
2 Answers
Keith Kelly
21,326 PointsYou have a syntax error on line 80 by accidentally adding a semicolon after margin instead of a colon. That might be causing validation errors after that line as well.
John Cato
2,565 PointsThanks Kelly! That was one of the issues. Have any idea why line 90 is giving me an error?
Keith Kelly
21,326 PointsIf you need to have the li elements stacked instead of horizontal I would use display: block instead of the inline-block.