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 trialCallum Davies
8,677 PointsCSS Validation Error
When using the CSS validator i get the following error: Value Error : display inline-c is not a display value : inline-c
This is the erroneous code from my main.css: nav li{ display: inline-c; }
I cant figure out what the problem is so any input would be appreciated - if you need more of my code to figure out the problem just say so and i will post more of it.
2 Answers
Jason Anders
Treehouse Moderator 145,860 PointsHey Callum,
Could you expand a bit on what is it you are trying to do with the CSS? Because there is no such value as inline-c
.
MDN Docs for the display property.
:)
Joshua Kelly
18,830 PointsAs far as I know there is no inline-c value for the display property.
http://www.w3schools.com/css/css_display_visibility.asp
take a look at this link. If you need to set something to inline or inline-block make sure you set the margins and widths (including padding) to your wrapper width. This can assist in centering using % that is responsive to your resolution and browser window width.
hope this helps. If I missed something let me know.
Callum Davies
8,677 PointsCallum Davies
8,677 PointsAh ok, thanks. Apparently i got distracted when writing the code and left it as 'c' rather than 'block'.