Setting the Color of LinksWhen setting the color of fonts special attention should be paid to links. Browsers render links in different colors than the rest of the text. If you set the background color of the page you not only need to set the color of the regular text but of the links as well.
To set the color of links we use three pseudo-classes of
.darkblue { background-color:#000080; color:white; } .darkblue A:link{color:white} .darkblue A:visited{color:yellow} .darkblue A:active{color:fuchsia}
When we apply
<DIV CLASS="darkblue"> Take a look at our <A HREF="./">home page</A> </DIV> we get this:
Take a look at our home page
|