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

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

Sebastian Karg
Sebastian Karg
28,705 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,287 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,705 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,287 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,897 Points

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