This is a migrated thread and some comments may be shown as answers.

[Solved] Simple Menu Styling Question

1 Answer 27 Views
Menu
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
im
Top achievements
Rank 2
im asked on 18 Apr 2012, 06:20 PM
I built a custom css for the MVC extensions using the Visual Style Builder, (which is pretty good even in beta), I modified the sprites, so everything seems ok... My question is, the other controls, i.e. Grid, use the same style names, and sprite to render their appearance which is good for uniformity, by problem is I have the background for the menu fine, with a hover image , unfortunately, now my grid uses the same images for hover as well, and I just want to use the default. I tried to apply the hover JUST to the t-menu and not the t-grid, but that still didnt work either... any ideas?

.t-state-hover,.t-state-hover:hover{background-color:#e3f4fc;border-color:#a7bac5;}
ul.t-menu .t-state-hover,.t-state-hover:hover{background-color:#e3f4fc;border-color:#a7bac5; background:url('mystyle/sprite.png') repeat-x 0 -710px}
.t-grid t-state-hover,.t-state-hover:hover{background-color:#e3f4fc;border-color:#a7bac5;}

1 Answer, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 19 Apr 2012, 07:49 AM
Hello Derek,

Please note that there are TWO selectors in the second and third CSS rule, separated by a comma. Both these selectors require the the additional Grid/Menu classes.

http://css.maxdesign.com.au/selectutorial/rules_group_sel.htm

Greetings,
Dimo
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the Telerik Extensions for ASP.MET MVC, subscribe to their blog feed now.
Tags
Menu
Asked by
im
Top achievements
Rank 2
Answers by
Dimo
Telerik team
Share this question
or