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.

Development Tools Introduction to Front End Performance Optimization Combine and Minify Assets Create a Sprite Map

Sebastian Karg
Sebastian Karg
28,704 Points

svg in footer not displayed properly

Hi guy's,

I followed the video so far, but the svg for the footer (twitter-wrap & facebook-wrap) are not displayed properly. When I hover over them my courser changes, the links are working and while inspecting the elements they are inside the DOM but it seems that they have adopted a white color.

Does someone have the same issue or know how to fix that?

Many thanks for your help,

Greetings, Basti

4 Answers

Konrad Traczyk
Konrad Traczyk
22,286 Points

Hi Sebastian,

Im experiencing the same issues when im dealing with svg sprite maps, for fix i recommend to set fill property through css for the svg element that uses particular icon, also read about cascading fill color.

Hope this helps

Sebastian Karg
Sebastian Karg
28,704 Points

Hi Konrad,

thanks for your quick answer.

Unfortunately the fill property doesn't work in workspaces. I try it again in my local dev environment and let you know, if it fixes the issue.

Greetings, Basti

Konrad Traczyk
Konrad Traczyk
22,286 Points

If you'd like to see this in action check: http://developphdenp.coleurop.pl/ Inspect slider/carousel arrows.

Steve Seebart
PLUS
Steve Seebart
Courses Plus Student 11,896 Points

I had the same issue. Turns out, I forgot to wrap the sprite map in <svg></svg> tags when I pasted it in.