...

View Full Version : Color Attributes for links



luigicannavaro
09-20-2007, 05:02 PM
Hi,

Please which color sttirbutes into CSS style sheet I must use for not change the color of links when selected?

Thank you

Luigi

michael180
09-20-2007, 05:09 PM
a:visited {}

luigicannavaro
09-21-2007, 06:21 PM
michael180,

Sorry, but when I select a lonk its color changes, from blue to red! And have´t any other style sheet code. It is an .asp page

thank you

Luigi

gnomeontherun
09-21-2007, 06:29 PM
a {
color: blue;
}
a:hover {
color: blue;
}
a:visited {
color: blue;
}
a:active {
color: blue;
}

luigicannavaro
09-21-2007, 06:41 PM
Thank you. Works fine.

Luigi

felgall
09-21-2007, 09:14 PM
Those references are in the wrong order. They should be in the order

link
active
focus
hover
active

any other order means that one or more of the entries will be completely ignored since you can't have an active link that isn't also hover or focus

probably not so important in this case where you are specifying the same value for each as everything except a {color: blue;} is redundant here anyway.

gnomeontherun
09-22-2007, 06:09 PM
Thanks felgall, I just wrote them off the top of my head - still a bit of a newbie myself!



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum