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

HTML How to Make a Website Responsive Web Design and Testing Website Testing

I am getting an error for website checks in css code

Error: 168 .contact-info a Value Error : background-attachment 0 is not a background-attachment value : 0 0 0 30px

My code: .contact-info a { display: block; min-height: 20px; background-repeat: no-repeat; background-size: 20px 20px; background-size: 0 0 0 30px; padding: 0 0 0 30px; margin: 0 0 10px;

}

I see the error is with the second background size. What should have I coded there?

1 Answer

Mike Hickman
Mike Hickman
19,817 Points

Hi Carie,

I'm headed out the door, so I can't look into the full exercise right now. But, on first glance, you have two lines defining background-size. You should only have one. Choose the one that you need for your code, take out the second line of background-size and see if that helps.

Cheers, Mike