My problem is, I want to highlight the table row below of the row which I'm hovering currently.
However, the problem I'm facing is that after two rows it should then highlight the next two rows. Basically that every two rows of the table highlight as one.
So if rows 2 and 3 are being highlighted, when I hover over row 4 only 4 and 5 are being highlighted, 6 and 7 and so on.
Currently, on hover, it just highlights the row the mouse is on. Is something like this possible using CSS? Or have I just overlooked something obvious.
table tr:nth-child(4n+4) {
background-color: #EBEBEB;
}
#table tr:nth-child(4n+5) {
background-color: #EBEBEB;
}
#table tr:hover {
background: #3498DB;
}
See my work here: http://jsfiddle.net/g5o7v6qe/21/
Sorry, if my question is a bit confusing or worded in a difficult manner, I do have some understanding of HTML and CSS but this for some reason stumped me. Thank you.