Log in

View Full Version : TableCell background color with an a:visited link. (Almost there. Need a nudge ...)



contiw
10-07-2006, 02:04 AM
The following css changes the color of an a:visited link text located into a tablecell.

I would like to change the cell background itself instead of the text background.

Is it possible?

Thanks for helping.

---------

<style>

.tablecell a:link,a:active {
color: #595984; /* Table cell link text color */
font-size:2.1em;
font-weight:bold;
}

.tablecell a:visited {
color: yellow; /* Table cell link text color */
font-size:2.1em;
font-weight:bold;
background-color:gray;
}

.tablecell a:hover {
color: red; /* Color to change table cell link text to on mouse over */
font-size:2.1em;
font-weight:bold;
}
</style>

dav8604
10-12-2006, 01:06 AM
If you are trying to change the background color of the table when there is a link inside of it that has been visited, you are going to need Javascript.


.tablecell td {
background-color:#999999;
}

is how you would change the background color of an item in your table with CSS