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 Build Navigation with Unordered Lists

Felipe Finsterbusch
Felipe Finsterbusch
1,073 Points

Problem with https://jigsaw.w3.org/css-validator/, it says 1 ERROR,"no valid property -5px 0 0, don't recognize valieus

https://jigsaw.w3.org/css-validator/, doesn't recognize the valieu -5

Jonathan Grieve
Jonathan Grieve
Treehouse Moderator 91,253 Points

Hi Felipe, would you be able to post the code you've used to the forum, using the markdown forum codes?

https://teamtreehouse.com/forum/problem-with-httpsjigsaww3orgcssvalidator-it-says-1-errorno-valid-property-5px-0-0-dont-recognize-valieus# This will help us answer your problem. Many thanks. :-)

3 Answers

Felipe Finsterbusch
Felipe Finsterbusch
1,073 Points
h2 {
  margin: 0.75em;
 font-size: -5px 0 0;
 font-weight: normal;
}
Jonathan Grieve
MOD
Jonathan Grieve
Treehouse Moderator 91,253 Points

Thanks for that Felipe.

Yes you're using an invalid value for the font-size property: :-)

the font size property takes absolue and relative values. The most common at the moment is a pixel (px) value.

Try

font-size: 16px;

in your code. :-)

Felipe Finsterbusch
Felipe Finsterbusch
1,073 Points

Thanks Jonathan, I figure that, so I erase -5px, and I just use 5px, now Ihave no ERROR, but the issue is that I follow what Nick explained and he says that it's use as a "trick", when he checked his code, the code was perfect, I don't know why.

thanks a lot.