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 CSS: Cascading Style Sheets What is CSS?

Problem with footer background color in css. It did not affect or include the social media icon when I refreshed webpage

Hi, I followed Nick's tutorial to change background-color to orange, but when I refreshed my webpage, it did change the footer background color, however it missed out my Instagram social media icon. The Instagram icon is outside the new orange colored footer box. What is wrong with my code? Does it have anything to do that the Instagram photo size? I tired to reduce file size to 60x60 pixels and saved it to png as well. But when I hover my mouse on the file size it says 4.55KB and Nick's images ranges from 300-731 B.

Here is a snapshot of my code https://w.trhou.se/l3wx12smel

<style> footer { color: green; background-color: orange; }

</style>

1 Answer

Jennifer Nordell
seal-mask
STAFF
.a{fill-rule:evenodd;}techdegree
Jennifer Nordell
Treehouse Teacher

Hi there! The big problem here is that there actually isn't one. The image that you're linking to is the sort of rounded Instragram icon on a white square. That's what you're seeing there. Had you linked to an Instagram image with a transparent background, then the orange of your footer would show through. Go to the site you have linked and click on that Instagram icon. You should be presented with a window with a black background. You will see a white square, and in the middle, is the icon. This is where the white border around the icon is coming from.

Hope this helps! :sparkles:

Thank you so so much!! Will do that.