dropdown trigger button keeping its hover state

More
12 years 4 months ago #20595 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!

Please Log in or Create an account to join the conversation.

More
12 years 4 months ago - 12 years 4 months ago #20596 by silk
Heres a link to the site.. once again many thanks ..in advance!

[removed]
Last edit: 12 years 4 months ago by silk.

Please Log in or Create an account to join the conversation.

More
12 years 4 months ago #20601 by ced1870
Hi
you can do it with your css with something like
Code:
.cm-bt-open:hover
and
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.

More
12 years 4 months ago #20606 by silk
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?

Please Log in or Create an account to join the conversation.

More
12 years 4 months ago #20607 by ced1870
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.

More
12 years 4 months ago #20608 by silk
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!

Please Log in or Create an account to join the conversation.

Time to create page: 0.210 seconds

Fast and powerful creation, customizable and responsive.

Read More

We have 1166 guests and 2 members online