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
Adrian Walker
3,830 PointsI am trying to add icons to my website nav links but I am unsure how to do this. Can some one please help me out??
NAV ICONS
1 Answer
SEBASTIAN BUFFO
2,822 PointsYou have to use both: html and css...
Here I post an example from the first track of Nick Pettit where the idea was include the phone and mail icons in a navigation:
HTML:
<ul class="contact-info">
<li class="phone"><a href="tel:555-5555">555-5555</a></li>
<li class="mail"><a href="mailto:name@example.com">name@example.com</a></li>
</ul>
CSS:
.contact-info li.phone a { background-image: url('../img/phone.png'); }
.contact-info li.mail a { background-image: url('../img/mail.png'); }
Adrian Walker
3,830 PointsAdrian Walker
3,830 Pointsthanx