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

Jonthue Michel
Jonthue Michel
1,462 Points

Error on CSS Validation

They say that

wrapper Value Error : padding only 0 can be a length. You must put a unit after your number : 9 5%

wrapper {

max-width: 949px; margin: 0 auto; padding: 9 5%;

}

But I don't understand what other unit is suppose to be their? I've followed the tutorial!

1 Answer

Shawn Boyd
Shawn Boyd
14,345 Points

That error is telling you that you can't have a non-zero value for padding without following it with a unit of measurement such as %, em, px, etc. Zero is allowed because zero is zero regardless of the unit of measure.

In your code you have

padding: 9 5%;

That 9 is not allowed without a unit of measure. In this specific case I think you just typed the wrong number. That 9 should be a 0.