Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Change td color when visited

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • #34875
    rian
    Member

    I have a table with a javascript in it which make every cells in it clickable and also I’ve styling it so every cells have different color when hovered. My question is how to make each cell still have its color (like while hovered) when it visited?

    here is the html








    Julion

    Rian

    Hendra

    Max

    and here it is the style

    table{
    margin: 0 auto;
    padding: 0;
    width: 1000px;
    height: 120px;
    background-color: #ccc;
    border-spacing: 0;
    }

    table.author td{
    background-color: none;
    }

    td#julion:hover{
    background-color: #ff617e;
    }

    td#rian:hover{
    background-color: #feff61;
    }

    td#hendra:hover{
    background-color: #c2ff42;
    }

    td#max:hover{
    background-color: #8cc9ff;
    }
Viewing 1 post (of 1 total)
  • The forum ‘CSS’ is closed to new topics and replies.