HTML link color problem?

  • Thread starter Thread starter gbfan_365
  • Start date Start date
G

gbfan_365

Guest
I'm having trouble trying to resolve a minor issue with the color scheme for the text links of my web site.

There are text-based links in more than one part of the site, and these links are set against different colors (tan, white, and green). Setting the link colors inside the body tag (alink= vlink= link=) didn't go well because, the color scheme that works for the green background didn't work for other areas of the site.

I'm sure there's a simple answer to this, and I'll welcome any assistance. And I'll be happy to provide any additional information if needed.
The added issue is that I'm trying to keep this is a simple HTML site. The other people editing is don't know CSS, style sheets, and so forth. I really need to come up with a basic solution.
 
Use CSS instead.

You can use classes to define different colors for links in different areas, and pseudo-classes for active and visited links, like so:

a.someLink:visited { color: green; }
a.someOtherLink:active { color: #00ff30; }

If you're not familiar with CSS, you should read up on it before doing any more web design.

Edit:
Unfortunately, there is no way to set some links on an HTML page to one color and others to another color without using CSS.

Why is it that these other people editing your site can't use CSS? It's as crucial a part of web design as HTML is, and no more complicated or difficult.
 
Back
Top