View Full Version : change color of multicolored link

09-18-2006, 06:52 AM
I would like a multicolored link text to be completely one color when the link is visited.

Here's what I have:

.box A:visited {

color: #FFFFFF;

The form is basically
<a href=""> this text <green> is</green> multi-<blue>colored</blue> </a>

Once the link is clicked all the link text should be black. Is this feasible? How should the order of inheritance be done?

09-18-2006, 07:18 AM
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Untitled Document</title>
<style type="text/css">
.box a, .box a:link {
.box a span.green, .box a:link span.green {
.box a span.blue, .box a:link span.blue {
.box a:visited span {

<div class="box">
<a href="#"> this text <span class="green"> is</span> multi-<span class="blue">colored</span> </a>

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum