Bob (and sweno),
Using Bob's css from the sample page:
/* Define a class for the copyright notice. */
p.copyright {
vertical-align:bottom;
}
.copyright a:link {color: #fff}
.copyright a:visited {color: #fff}
will give the unvisited link and visited link the color (white in this case.)
Basically all you are doing here is creating a contextual selector (think of it as a "chained" list of selectors.) It says that for any selector of the type 'a' within any selector with the class .copyright look at the :link and :visited pseudo-classes and apply the selected property.
This site might be a little clearer: http://htmlhelp.com/reference/css/structure.html
Remember, if you do use the :hover option that it goes AFTER the :link
and :visited or it will not work correctly in some browsers.
Keith
Quote:.copyright:link { color: #976907; }I don't think this will work as written. I believe that you'd need the a:link selector in order for it to work properly.
.copyright:visited {color: #B75905; }
Using Bob's css from the sample page:
/* Define a class for the copyright notice. */
p.copyright {
vertical-align:bottom;
}
.copyright a:link {color: #fff}
.copyright a:visited {color: #fff}
will give the unvisited link and visited link the color (white in this case.)
Basically all you are doing here is creating a contextual selector (think of it as a "chained" list of selectors.) It says that for any selector of the type 'a' within any selector with the class .copyright look at the :link and :visited pseudo-classes and apply the selected property.
This site might be a little clearer: http://htmlhelp.com/reference/css/structure.html
Remember, if you do use the :hover option that it goes AFTER the :link
and :visited or it will not work correctly in some browsers.
Keith