Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

HTML How to Make a Website Styling Web Pages and Navigation Polish the Navigation and Footer

Scott Thomas
Scott Thomas
2,164 Points

Can't touch footer images with CSS

For some reason, my CSS for the footer img size isn't affecting the size....

HTML.html
<footer>
        <a href="http://twitter.com/scottathomas"><img src="img/twitter-wrap.png" alt="Twitter logo" class="social-icon" /></a>
        <a href="http://facebook.com/scott.thomas2"><img src="img/facebook-wrap.png" alt="Facebook logo" class="social-icon" /></a>
        <p>&copy; 2016. This is where my stinky feet are! </p> 
 </footer>
CSS.css
footer img.social-icon
  width:20px;
  height:20px;
  margin:0 5px;
}

I have tried just using .social-icon, and many other variations in the stylesheet. Nothing.

1 Answer

Greg Kaleka
Greg Kaleka
39,018 Points

Hi Scott,

You're just missing the open curly brace for your CSS rule. Should look like:

footer img.social-icon {
  width:20px;
  height:20px;
  margin:0 5px;
}
Scott Thomas
Scott Thomas
2,164 Points

Thanks Greg. I just pasted the css into Dreamweaver and noticed this immediately.