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!

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


Jasmin Myers
Jasmin Myers
2,461 Points

Two twitter icons and additional spacing between email and twitter info, what am I doing wrong?

I've been struggling on my contact page and the icons, after multiple attempts I was finally able to get the icons to appear. But now it doesn't look orderly.. this is my code


Contact Page

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

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

.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');


 <section id="secondary">
        <h3>Contact Details</h3>

          <ul class="contact-info">

            <li class="phone"><a href="tel:678-910-7549">678-910-7549</a></li>

            <li class="mail"><a href="mailto:myers.jasmin@gmail.com" target="_blank">myers.jasmin@gmail.com</li>

         <li class="twitter"><a href="http://twitter.com/intent/tweet?screen_name=twitter" target="_blank">@twitter</a></li>

Thank you

7,644 Points

Would be handy to share a snapshot of your workspace, that way we can preview and see whats wrong. Just click on the camera icon right top corner of your workspace and share the link with us.

Austin Whipple
Austin Whipple
29,725 Points

I've updated your question to clean up the code formatting a bit. Be sure to check out the Markdown Cheatsheet below the text editor for more information! (I also second Gert's suggestion that a link to a Wordspace would help with diagnosing the issue.)

Jasmin Myers
Jasmin Myers
2,461 Points

Thank you all for being helpful, I failed to mention that I use sublime text. I attempted to transfer everything into workspace and as I preview the details it was no bueno... so I'm working on fixing everything so that it can be viewed. I think I may have figure out my mistake one of my li items had an anchor tag around it that wasn't closed.