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 trialFederico Reggiardo
3,316 PointsIcons not showing up
Hi, The url link in my CSS seems to be broken and the icons are not showing up. Could use a fresh set of eyes to see what I'm missing. Thanks for any help!!
<section> <h3>Contact Details</h3> <ul class="contact-info"></ul> <li class="phone"><a href="tel:816-200-2062">816-200-2062</li> <li class="mail"><a href="mailto:info@brooksideguitars.com">Email Us</li> <li class="twitter"><a href="http://twitter.com/intent/tweet?screen_name=bksgtr">@bksgtr</li> </section>
.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'); }
5 Answers
Michael Buchmann
3,445 PointsYour unordered list is closed before the list is complete. Move the </ul> to end of the list after the twitter link.
Federico Reggiardo
3,316 PointsThanks Michael! Don't know how I missed that
Cena Mayo
55,236 PointsHi Frederico,
It's most likely your path to your image directory that's incorrect. What this says: ''../img/phone.png" is - from the current directory (the one containing index.html), go up a level, and then look for a directory called /img. That's likely not where your /img directory is located. It's probably a subdirectory of your current (root) directory, so your path to the images should just be 'img/img-name.png'.
Hope that helps!
Federico Reggiardo
3,316 PointsThanks Cena, I thought that as well but that did not solve it. I'm currently writing this in Textastic in iOS; is there any chance that the .. Command is somehow different in this app??? Otherwise my page will just have to be icon-less for the time being.
Thanks again
Joelito Pilapil
2,111 PointsI think you forgot the closing tag of anchor tag? </a> before the closing tag of list tag </li>