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 Adding Pages to a Website Add Iconography

Icons 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

Your unordered list is closed before the list is complete. Move the &#60/ul&#62 to end of the list after the twitter link.

Thanks Michael! Don't know how I missed that

Hi 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!

Thanks 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
Joelito Pilapil
2,111 Points

I think you forgot the closing tag of anchor tag? </a> before the closing tag of list tag </li>