Jump to content
ruitertje

w3css opens all dropdownlevels on hover

Recommended Posts

Hi,

I have rebuild a smarty-template that produces a menu from the cms-database.

It can handle multiple levels for the navigation.

I have it almost working the only thing is that alle dropdowns are opened upon the first level hover.

It can be seen at http://c-m-s.pw/index.php?page=testen_w3css

My question, is it possible to use hover for multiple level dropdowns?

I cannot use "on click" because the toplevel is also a link to a page.

 

Any ideas how to solve this?

Regards,

Jan

Share this post


Link to post
Share on other sites

It is possible when you copy all code for

.w3-dropdown-hover .w3-dropdown-content  to another level like

.w3-dropdown-hover1 .w3-dropdown-content1

.w3-dropdown-hover2 .w3-dropdown-content2

etc.

etc.

I only need to give a leftmargin of 2em or more to keep seeing the underlying menu.

The first test localy is functioning, so I can nao build it into the template.

Regards,

Jan

Share this post


Link to post
Share on other sites

When I use a local file w3.css this happens.

This is the one I changed, after downloading a new one it is working, so I have to search why the change I made for the multilevel dropdown effect this.

Any ideas are welcome.

Regards,

Jan

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...