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
ramseydennis
4,530 PointsWhat is wrong with my code? My social media icon's aren't smaller like they are expected to be upon code input.
I'm currently working on my footer for my CSS course, and I'm on the part where I am supposed to decrease the size of my social media icons - do you guys see anything wrong with my code?
Thanks -
HTML:
<footer>
<a href="http://twitter.com/metrocollab"><img src="img/twitter-wrap.png" alt="Twitter Logo" class="social-icon"></a>
<a href="http://facebook.com/metrocollaborative"><img src="img/facebook-wrap.png" alt="Facebook Logo" class="social-icon"></a>
<p>© 2015 Ram.</p>
</footer>
CSS:
.social-icon {
width: 20px;
height: 20px;
margin: 0 5px;
}
2 Answers
Jose Gonzalez
5,032 PointsWhat browser are you using, can you post the link to your project?
ramseydennis
4,530 PointsHey Jose,
I'm using Chrome and here's the link to my project:
Thanks -
Jose Gonzalez
5,032 PointsYour code looks solid, and see no reason why it would not render correctly. All of the tags have been properly closed and the syntax looks correct.
Have you tried clearing your browser's cache? https://support.google.com/chrome/answer/95582?hl=en
ramseydennis
4,530 PointsClearing my cache worked.
Thanks again Jose -
Jovanny Elias
16,204 PointsJovanny Elias
16,204 Pointsi went ahead and edited your code that you posted. You had the right idea as to how to post code on the forum but it has to be exactly as it is below or it will not display properly.
If you are using workspace a new and easy way to show us your code is called snapshot. Follow this link to see how it works.