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
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;
}