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 Responsive Web Design and Testing Website Testing

validating my css code

im trying to validate my css code through http://jigsaw.w3.org/css-validator but i get this error:

63 nav Value Error : margin only 0 can be a length. You must put a unit after your number : 20 0 0

please help.

1 Answer

Max Goetz
Max Goetz
5,360 Points

Hi John,

Without looking at the code, I believe that there should be a unit of measurement after 20.

I believe it should look something like this:

margin: 20px 0 0;

Hope this helps. :) Max

yea i was looking at the code and it hit me! i figured it out before i could see your answer lol. but thanks its great to see fast and accurate responses!.