NAPI Navigational Map
NAPI logo-left NAPI logo-middle NAPI logo-right

Changing Link Colors

    Oftentimes, link colors can clash with background colors. Here's a little trick to use to avoid the clash. You need to define the color in two ways, to ensure that the link color remains consistent with both Netscape and MSIE browsers. This code defines both style and font and takes care of that problem.

This is my pre-defined link color (blue) from the body tag in the head command. The visited link color is an Indian red. The table has a clear background, allowing the warrior to show through.

<!-- Begin Body Tag Example One--> <body background="warrior.gif" bgcolor="#ffffff" text="#000000" link="#333399" alink="#660000" vlink="#990033">

Here, I want to make my link color red in this white table. Click here to see that the visited link stays red.

<!-- Begin Link Color Example One--> <A HREF="linkcolors.html" style="color:#ff0000"><font color="#ff0000">Text goes here</font></A>

Now I have a black table and I want my link color to be white. Click here to see that the visited link color stays white.

<!-- Begin Link Color Example Two--> <A HREF="linkcolors.html" style="color:#ffffff"><font color="#ffffff">Text goes here</font></A>

    So you see how easy it is to define link colors. It comes in most handy with defining link colors within tables.


NAPI has been accessed Counter Courtesy of LinKo times since May 28, 1997

This Site Hosted by GeoCities
Hosted by GeoCities
NAPI © 1997-98 Laura Brooks
Last Modified: Thursday, January 29, 1998
LinkExchange
LinkExchange Member