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 trialJennifer Wheeler
3,321 PointsTwitter and Facebook Icons won't resize.
I have looked over my code and can't figure out what is wrong. CSS- /****************************************** FOOTER *******************************************/
footer { font-size: 0.75em; text-align: center; clear: both; padding-top: 50px; color: #ccc; }
.social-icon { width: 20px; height: 20px; margin: 0 5px; }
HTML- <footer> <a href="http://twitter.com/nickrp"><img src="img/twitter-wrap.png" alt="Twitter Logo" class:"social-icon"></a> <a href="https://www.facebook.com/profile.php?id=100008285481866&fref=ts"><img src="img/facebook-wrap.png" alt="Facebook Logo" class:"social-icon"></a> <p>© 2015 Jennifer Wheeler.</p> </footer>
1 Answer
Liam Raven
10,875 Points- For your classes you have used : rather than =
- Make sure your image src paths are correct
<footer>
<a href="http://twitter.com/nickrp"><img src="img/twitter-wrap.png" alt="Twitter Logo" class="social-icon"></a>
<a href="https://www.facebook.com/profile.php?id=100008285481866&fref=ts"><img src="img/facebook-wrap.png" alt="Facebook Logo" class="social-icon"></a>
<p>© 2015 Jennifer Wheeler.</p>
</footer>
Jennifer Wheeler
3,321 PointsIt worked! Thanks for catching that. I didn't see it. Thanks for your help!
Liam Raven
10,875 PointsNo worries, the answer is often the simplest mistake.
Jennifer Wheeler
3,321 PointsJennifer Wheeler
3,321 Points