I have a table of six columns. The table is formatted with odd and even row colours with current row highlighted with different colour. I am using this table to list pdf documents which can be viewed depending on which row is clicked. All this works smoothly.
The problem I have is that I really don't want to have to tell users to double click a row. The idea is that every row has one cell (the 4th column as it happens) containing the text 'View'. What I want to do is to hide this text by setting it to the same colour of the (alternating) background colour and bringing in line with the other cells in the row when hovering on that row. My current css code is:
.tableid .row-hover tr:hover td {
background-color: #b3f0ff;
color: #000000;
}
.tableid .odd td {
background-color: #DFF2FE;
color: #000000;
}
.tableid .even td {
background-color: #F2FAFF;
color: #000000;
}
.tableid .selected tr {
background-color: #FF0000;
color: #FFFFFF;
}
Have tried multiple variations of cell selection including child selectors but so far have fallen at every hurdle. Don't know if I'm missing something fundamental or simple so apologies if I have missed the obvious.
ps: Don't know if this is relevant but the table is in the WordPress environment.