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 trialFelipe Finsterbusch
1,073 PointsProblem 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
3 Answers
Felipe Finsterbusch
1,073 Pointsh2 {
margin: 0.75em;
font-size: -5px 0 0;
font-weight: normal;
}
Jonathan Grieve
Treehouse Moderator 91,253 PointsThanks 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
1,073 PointsThanks 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.
Jonathan Grieve
Treehouse Moderator 91,253 PointsJonathan Grieve
Treehouse Moderator 91,253 PointsHi 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. :-)