Page 1 of 1

VerticalMenu

PostPosted: 26 May 2014 07:54
by etwoss
Hi

The selected item's color is the same as the main menu item that is expanded, can i give one of them another color?

Eric

Re: VerticalMenu

PostPosted: 26 May 2014 09:38
by Alexander Bulei
Hi Eric,

Yes, you can.

Use the JQVertMenu.VisitedCss property.
Then, you need define your own style.

E.g:

delphi code
JQVertMenu.VisitedCss:= 'vertmenu-mystyle';


css code
.vertmenu-mystyle:not(.openned){
color: red;
}


Note

You need add ":not(.openned)" selector because expanded item also receives VisitedCss on click.



Best Regards.

Re: VerticalMenu

PostPosted: 26 May 2014 10:26
by etwoss
Hi

This works, but only gives the font of the item the color red, there is no box anymore around the text

Eric

Re: VerticalMenu

PostPosted: 26 May 2014 10:37
by etwoss
Learning :D

.vertmenu-mystyle:not(.openned){
border: 1px solid #acdd4a;
background: #6eac2c url(images/ui-bg_gloss-wave_75_2191c0_500x100.png) 50% 50% repeat-x; font-weight: normal; color: #ffffff; }
}