How to disable freezing effects in the last row of a table?

I am using a simple html table with the following css, which will just change the background color on hover.

    html>body tbody.scrollableBody tr:hover>td{
    background-color: #ccc
}

I need to apply this effect for every row of the table except the last row of the table. Anyway, should I handle this exception with css or js?

thank

+3
source share
1 answer

Use this rule immediately after your rule.

html>body tbody.scrollableBody tr:last-child:hover>td{
    background-color: #FFF 
}

#FFF will match the default background color

+7
source

Source: https://habr.com/ru/post/1794514/


All Articles