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 trialaFilipa Neves
Courses Plus Student 2,516 PointsWhy are my links still blue?
This css rule: a { text-decoration: none } clears the underline. but does it clear the blue color of a link?
6 Answers
Bryson Gilreath
5,947 PointsI'm fairly new at this but I believe the text-decoration property only adds or removes underlines, overlines, and strike-throughs. you would have to add a rule that makes the color what you want it to be, or tells it to inherit its parent's color (like the p or div the link is in). Hope that helps!
Mark Josephsen
8,803 PointsTry this:
a { color: inherit; }
to get rid of the blue.
Thomas Meiller
457 Pointsmaybe you should put simply the Color to 'white': a { Color: #ffffff; } good luck furthermore.
Christian Ekornaasvaag
Courses Plus Student 974 PointsI have the same problem. My CSS:
*/ links */
a { color: #6ab47b; }
/* nav link */ nav a, nav a:visited { color: #fff; }
/* selected nav link*/ nav a.selected, nav a:hover { color: #32673f; }
Any tips?
aFilipa Neves
Courses Plus Student 2,516 PointsHave you checked all the spaces between characters? I found out that was my problem :/ I had an extra space before a }
Christian Ekornaasvaag
Courses Plus Student 974 PointsYes , I can't spot anything but I am a total coding newbie.
aFilipa Neves
Courses Plus Student 2,516 PointsaFilipa Neves
Courses Plus Student 2,516 PointsSo after that rule I put: a { color: #6ab47b; }
But it's still blue. It's really weird. I'm going to check again the differences between my workspace and the video. Thanks anyway.
update: I had an extra space before } ! sorry and thanks!