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

HTML How to Make a Website Adding Pages to a Website Add Iconography

Matthew Largent
Matthew Largent
1,788 Points

Mail icon not showing, triple checked code, throwing in the towel...

/******************
CONTACT
******************/

.contact-info {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.9em;
}

.contact-info a {
  display: block;
  min-height: 20px;
  background-repeat: no-repeat;
  background-size: 20px 20px;
  padding: 0 0 0 30px;
  margin: 0 0 10px;
}

.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');
}
   <div id="wrapper">
      <section id="primary">
        <h3>General Info</h3>
        <p>I am not looking for work currently.</p>
        <p>Please only use phone for emergencies.</p>
        </section>
        <section id="secondary">
        <h3>Contact Details</h3>
        <ul class="contact-info">
          <li class="phone"><a href="tel:555-6848">555-6848</a></li>
          <li class="email"><a href="mailto:matt@blacablaca.com">matt@blacablaca.com</a></li>
          <li class="twitter"><a href="http://twitter/intent/tweet?screen_name=@matt">@matt</a></li>
        </ul>
      </section>

3 Answers

Hey Matthew,

Can you post the HTML markup for that section? It should look like:

      <section>
        <h3>Contact Details</h3>
        <ul class="contact-info">
          <li class="phone"><a href="tel:555-6425">555-6425</a></li>
          <li class="mail"><a href="mailto:nick@example.com">nick@example.com</a></li>
          <li class="twitter"><a href="http://twitter.com/intent/tweet?screen_name=nickrp">@nickrp</a></li>
        </ul>
      </section>

Hi Matthew,

Did you get this figured out yet?

If not, you should compare the class names that Micah posted here with the class names you have in your html.

Jason Anello is correct -- looks like you have "email" (should me "mail") as the class name.

Matthew Largent
Matthew Largent
1,788 Points

Ah thanks, that was my first time posting code, now hopefully it's legible.

Matthew Largent
Matthew Largent
1,788 Points

Got it figured out, thanks!

email --> mail