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

CSS

Darren Franks
Darren Franks
1,006 Points

Please please help! My Website does not contain contact images?

Can anyone see what is wrong here? i followed Nick pettit's building website and all went well except i cant see 'phone, or email, or twitter png image next to my contact. Can somesome please tell me where ive gone worng? Thank you all for your time!

darrenfranks.org

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

}

2 Answers

Hi Darren,

double check your html code. There is a typo in the naming of your ul class.:

<ul class="conact-info">

It should be named like so, for the css to work properly:

<ul class="contact-info">

Hope this helped

Darren Franks
Darren Franks
1,006 Points

I love you to bits!! I have been racking my brain and looking in the wrong area! Silly me, thank you so much my dear thats been bugging me so much and I've changed it and its worked! Have a lovely day! :-)

Darren Franks
Darren Franks
1,006 Points

By the way i love your website very clean and beautiful! How do you get your contact links to move when you hover over them?

Hi again!

Thanks for the flowers :) (that's what we say in Germany when we appreciate a compliment ;) )

I added a margin-left: 15px; to the pseudo class :hover of anchors as well as a transition delay so to say.. so it would really look like a sliding animation, when the mouse hovers over a link. you can do it like this for best browser support:

a {
  transition: All ease-in-out 0.3s;
  -webkit-transition: All ease-in-out 0.3s;
  -moz-transition: All ease-in-out 0.3s;
  -o-transition: All ease-in-out 0.3s;
}

a:hover {
  margin-left: 15px;
}