Results 1 to 2 of 2

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

  1. #1
    Join Date
    Mar 2006
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default 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>

  2. #2
    Join Date
    Oct 2006
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •