Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to disable on hover effects on last table row?

Tags:

html

css

I'm using simple html table with following css which will simply change background color on mouse hover.

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

I need to take this effect to every table row except to the last table row. Is there anyway me to handle this exception with css or js ?

Thank you

like image 880
nimo Avatar asked Feb 24 '23 23:02

nimo


1 Answers

Use this rule just after your above rule.

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

#FFF will be whatever the background color is by default

like image 129
jondavidjohn Avatar answered Mar 11 '23 09:03

jondavidjohn