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 trialCharlotte Smith
6,188 PointsAdding the CSS image elements took away my styling
I started to add in the background image elements to the contact info page on the main.css file and as soon as I did, it messed up the styling of my whole website, removing all backgrounds and colors. Help!
2 Answers
Tawny Bartlett
24,674 Points.contact-info li.phone a {
background-image: url('../img/phone.png);
}
.contact-info li.mail a {
background-image: url('../img/mail.png);
}
.contact-info li.twitter a {
background-image: url('../img/twitter.png);
}
I think it might be because you're missing the closing quote on the urls?
.contact-info li.phone a {
background-image: url('../img/phone.png');
}
.contact-info li.mail a {
background-image: url('../img/mail.png');
}
.contact-info li.twitter a {
background-image: url('../img/twitter.png');
}
I hope that helps :)
Charlotte Smith
6,188 Pointsthat worked! thank you :)