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
Rob Grennan
11,001 PointsMy contact icons are not appearing...
I've read through the forum, but still can't identify what's wrong with my code...
<ul class="contact-info">
<li class:"phone"><a href="tel:555-1212">555-1212</a></li>
<li class:"mail"><a href="mailto:rob@robgrennan.com">rob@robgrennan.com</a></li>
<li class:"twitter"><a href="http://twitter.com/intent/tweet?screen_name=nannergbor">@nannergbor</a></li>
</ul>
.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');
}
2 Answers
Rich Bagley
25,869 PointsHi Rob,
Try replacing:
<ul class="contact-info">
<li class:"phone"><a href="tel:555-1212">555-1212</a></li>
<li class:"mail"><a href="mailto:rob@robgrennan.com">rob@robgrennan.com</a></li>
<li class:"twitter"><a href="http://twitter.com/intent/tweet?screen_name=nannergbor">@nannergbor</a></li>
</ul>
with:
<ul class="contact-info">
<li class="phone"><a href="tel:555-1212">555-1212</a></li>
<li class="mail"><a href="mailto:rob@robgrennan.com">rob@robgrennan.com</a></li>
<li class="twitter"><a href="http://twitter.com/intent/tweet?screen_name=nannergbor">@nannergbor</a></li>
</ul>
Notice the equal signs in place of the colon. Hope that helps :)
-Rich
Rob Grennan
11,001 PointsAH! I knew it was simple! Thanks so much.
Rich Bagley
25,869 PointsNo problem :)
-Rich
Rich Bagley
25,869 PointsRich Bagley
25,869 PointsI just tweaked your question too so that the code was easier to read in the post.
Here's how to do it if you need to in future :)
-Rich