Yii Framework Forum

Gridview hover background-color


(Sven Siwek) #1

Hi,

how do I change that?

I dont want to change in bower/dist/css/bootstrap.css

I tried several places without luck.

thanks in advance
Sven


(Alirz23) #2

add the following in your site.css file

.grid-view table tbody tr:hover {
  background-color: pink;
}

(Sven Siwek) #3

Hi,
thanks for your quick reply.

I tried that, but without luck.

Maybe I should have told you, that I use kartik gridview?

Sven


(Sven Siwek) #4

Hi
this does the trick for me :slight_smile:

.table-hover tbody tr:hover{
background-color: #ffe4e1;
}