February 25, 201016 yr I know this is super basic html but I just can't figure out what it is that's going wrong! I want my links to be white, so: a:link { color: #ffffff;} But they show up as purple! Which I suppose is my browser's default? (I use chrome) All the other ones, a:visited a:active etc are fine... And also when I right click in Chrome and 'inspect element' I see 'color: webkit link' what is that? (see image) Thanks for any help.
February 25, 201016 yr color:-webkit-link; is part of you browser's default stylesheet, these are the styles that are applied when no other styles apply to that element. The debug window in chrome seems to suggest that your stylesheet isn't being loaded because there are no styles applying to the anchor. How are you supplying the styles? Can you show the full html file? Thanks, Explosive Designs Web Design by Explosive Designs
February 25, 201016 yr a:link {} is just the link state. You probably need to code all states:- a:link, a:visited, a:hover, a:active, a:focus { color: #ffffff; } and depending on your code structure you might want to put a class or id in front of each so that the codes only apply to that class or id and not everywhere:- #nav a:link, #nav a:visited, #nav a:hover, #nav a:active, #nav a:focus { color: #ffffff; }
Create an account or sign in to comment