CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

VerticalMenu

General discussion

by etwoss » 26 May 2014 07:54

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
You do not have the required permissions to view the files attached to this post.
etwoss
 
Posts: 1205
Joined: 06 Feb 2014 08:58

by Alexander Bulei » 26 May 2014 09:38

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.
Group: Developers | Support Team

  • info [at] cgdevtools.com - General information
  • sales [at] cgdevtools.com - Sales department
  • support [at] cgdevtools.com - Product and Technical Support
User avatar
Alexander Bulei
Site Admin
 
Posts: 3635
Joined: 15 May 2012 08:52
Location: Mealhada, Portugal

by etwoss » 26 May 2014 10:26

Hi

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

Eric
etwoss
 
Posts: 1205
Joined: 06 Feb 2014 08:58

by etwoss » 26 May 2014 10:37

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; }
}
etwoss
 
Posts: 1205
Joined: 06 Feb 2014 08:58


Return to General - Archive

Who is online

Users browsing this forum: No registered users and 5 guests

Contact Us.