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 trialGraham Davidson
Courses Plus Student 14,966 PointsSVG Question
Hi All
I have made my first move to using SVG's on this site I am using these as a roll over and they seem to be throwing up an odd little black pixel at the bottom of the image in Chrome (not tested in anything else) - does anyone know why this might be happening please.
G
2 Answers
Kevin Korte
28,149 PointsYes,
In the bootstrap.css file somewhere around line 238 there are anchor pseudo classes
a:hover, a:focus
and these pseudo classes have this:
color: rgb(0, 85, 128);
text-decoration: underline;
That is where the underline is coming in. When I disable the text-decoration attribute the underline disappears. You just need to find the best solution for you to fix that. If you over ride that class, it will effect all anchors, so you should be able to give those social media anchors a special class to override the bootstrap anchor classes that are giving you problems.
Kevin Korte
28,149 PointsI solved it, but I'll you try to solve it first.
Graham Davidson
Courses Plus Student 14,966 PointsGraham Davidson
Courses Plus Student 14,966 PointsHi Kevin
Thanks for that - should have looked down my developer tools - it just did not even occur to me it would be an underline issues.
G
Kevin Korte
28,149 PointsKevin Korte
28,149 PointsNo worries Graham! Sometimes it just takes a second set of eyes. Sounds like you found your answer, so I'll post what I found to work for anybody who may stumble across this later.
Graham Davidson
Courses Plus Student 14,966 PointsGraham Davidson
Courses Plus Student 14,966 PointsIt does indeed Kevin, you are not wrong there.
Thanks again
G