Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Ben on Oct 23, 2009 10:23
open dhtmlx forum
grid hover style

We added this for the grid so it has a hover style when rows are hovered over:
.grid_hover { background: #FFF url(../../../cp/template/default/images/table_tr_background.gif) repeat; }
.odd_xp { background: #f6f6f6; }

However, is there any way to ONLY apply this to a single style like "xp"?

Right now .grid_hover is getting applied to all styles.
Answer posted by Stanislav (support) on Oct 26, 2009 03:48
You can change the name of css class as

div.gridbox_xp .grid_hover { ...any rules ...}
Answer posted on Oct 26, 2009 18:12
We ended up using this, is it acceptable?
div.gridbox_xp table.obj tr.rowselected td,
div.gridbox_xp table.obj tr:hover,
div.gridbox_xp .odd_xp:hover {
    background: #FFF url(../../../cp/template/default/images/table_tr_background.gif) repeat;
}

Answer posted by Stanislav (support) on Oct 27, 2009 02:25
Yes, it will work correctly. 
While your custom css rules changes only colors they will not break anything - so you can use any combinations of rules.