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


I'm having problems styling the social icons in the footer

I'm working a portfolio site as a Zipline from FreeCodeCamp and following along this course. The only difference is I'm going to build the portfolio in one page

Here's a snapshot of my workspace:


For some reason the class .social-icon doesn't seem to be styling the icons in the footer. Can someone please help with this issue?

1 Answer

Pavithra Manivannan
Pavithra Manivannan
7,474 Points

Hi Edward, You are about to resize the facebook and twitter icon image so, you have to add the class parameter to <img> tag not to <a> tag.pls try the following code <footer id="contact"> <a href="https://www.facebook.com" alt="Facebook link" > <img src="Images/FB icon.png" alt="Facebook Logo" class="social-icon"> </a> <a href="http://www.freecodecamp.com/edward-hong" alt="Free Code Camp link"> <img src="Images/FCC icon.png" alt="Free Code Camp Logo" class="social-icon"> </a> <p>© 2016 Edward Hong</p> </footer>

Thanks Pavithra it's working correctly now