Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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