-
TableCell background color with an a:visited link. (Almost there. Need a nudge ...)
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>
-
-
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
-
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks