Kunena Menu
dropdown trigger button keeping its hover state
12 years 4 months ago #20595
by silk
dropdown trigger button keeping its hover state was created by silk
Hi,
I was just hoping for 1 last bit of help to totally perfect the main menu dropdown
Basically the main menu trigger button (when hovered on the dropdown appears), is an image.
I would like this image to keep its hover state whilst the dropdown menu is displayed and also if the user visits a page within that dropdown (menu category).
Your help would be very much appreciated!
I was just hoping for 1 last bit of help to totally perfect the main menu dropdown
Basically the main menu trigger button (when hovered on the dropdown appears), is an image.
I would like this image to keep its hover state whilst the dropdown menu is displayed and also if the user visits a page within that dropdown (menu category).
Your help would be very much appreciated!
Please Log in or Create an account to join the conversation.
12 years 4 months ago - 12 years 4 months ago #20596
by silk
Replied by silk on topic dropdown trigger button keeping its hover state
Heres a link to the site.. once again many thanks ..in advance!
[removed]
[removed]
Last edit: 12 years 4 months ago by silk.
Please Log in or Create an account to join the conversation.
12 years 4 months ago #20601
by ced1870
Joomlack Webmaster and Developer
Replied by ced1870 on topic dropdown trigger button keeping its hover state
Hi
you can do it with your css with something like
and
as you are using .cm-bt-open as css class for the image
CEd
you can do it with your css with something like
Code:
.cm-bt-open:hover
Code:
.cm-bt-open.active
as you are using .cm-bt-open as css class for the image
CEd
Joomlack Webmaster and Developer
The following user(s) said Thank You: silk
Please Log in or Create an account to join the conversation.
12 years 4 months ago #20606
by silk
Replied by silk on topic dropdown trigger button keeping its hover state
Hi, Yes ive tried quite a few different combinations like this, but nothing seems to work? The hover effect disapears as soon as the mouse moves away.
Also active doesn't seem to work either.. if the user is currently on a page within that dropdown?
.cm-bt-open .active
.cm-bt-open:active
.cm-bt-open:hover
? Any ideas? I think im missing something?
Also active doesn't seem to work either.. if the user is currently on a page within that dropdown?
.cm-bt-open .active
.cm-bt-open:active
.cm-bt-open:hover
? Any ideas? I think im missing something? Please Log in or Create an account to join the conversation.
12 years 4 months ago #20607
by ced1870
Joomlack Webmaster and Developer
Replied by ced1870 on topic dropdown trigger button keeping its hover state
try this at the end of your template.css file
Code:
.cm-bt-open:hover, .cm-bt-open:hover > a {
background: red !important;
}
Joomlack Webmaster and Developer
The following user(s) said Thank You: silk
Please Log in or Create an account to join the conversation.
12 years 4 months ago #20608
by silk
Replied by silk on topic dropdown trigger button keeping its hover state
Great done the trick for retaining the hover state whilst the dropdown is displayed..many thanks!
Last thing, any ideas how I could possible.. get that same button state whilst the user is on a page within that dropdown..?
Many thanks again!
Last thing, any ideas how I could possible.. get that same button state whilst the user is on a page within that dropdown..?
Many thanks again!
Please Log in or Create an account to join the conversation.
Time to create page: 0.198 seconds




