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


What's wrong with my CSS? Contact icons aren't appearing in the way they do in Nick's video -

The contact icons on my contact page aren't appearing on the left side of each contact option.

Here is a link to my code: https://w.trhou.se/v9l09lrsft

I am referring specifically to the Contact section of my main.css and contact.html.

Here is what I am referring to specifically:


      <h3>Contact Details</h3>
        <ul class="contact-info">
          <li class="phone"><a href="tel:444-5643">444-5643</a></li>
          <li class="mail"><a href="mailto:ram@example.com">ram@example.com</a></li>
          <li class="twitter"><a href="http://twitter.com/intent/tweet?screen_name=metrocollab">@metrocollab</a></li>


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


1 Answer

Hi ramseydennis ,

Those styles were supposed to be applied to the links within the .contact-info list.

The selector should be .contact-info a

Great, thank you Jason.