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 Styling Web Pages and Navigation Polish the Navigation and Footer

Luise Steinkellner
Luise Steinkellner
671 Points

Hi! My social media icons don't change at all.

I've checked the other questions and found two mistakes which however I can't see in my code. But obviously something must be wrong. Just don't know what. Help! Thanks!!

html: <footer> <a href="http://www.videokueche.at"> <img src="img/facebook-wrap.png" alt="Facebook logo" class="social-icon"></a> <a href="http://www.videokueche.at"> <img src="img/twitter-wrap.png" alt="Twitter logo" class="social-icon"> </a>

css: .social-icon { width: 20px; height: 20px; margin: 0 5px; }

3 Answers

Filip Kaniski
Filip Kaniski
6,677 Points

To add on to Tom's comment, usually projects are structured with a CSS folder and an Images folder in the same level of the directory. Your stylesheet document is likely within the CSS folder while the images you're trying to use are within the images folder. To go up a level in the directory when using a relative URL path, add "../" to the beginning of your file path, then you can go into the "img" folder and grab your png.

As you have it written now, the images will only show up if you have an "img" folder in the same level of the directory as your stylesheet document.

Are you meaning to say your media buttons aren't showing up? Usually if the media buttons don't show up the URL is the part that is wrong. Make sure that the URL is pointing to the correct folder.

Luise Steinkellner
Luise Steinkellner
671 Points

Tom, Filip, thanks for your help. I'm afraid you misunderstood my question. Sorry for not being clearer. However I have since discovered that it seems to have been a "cache problem". When I emptied my cache everything was working.