Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Vertical Accordion Menu - Active

Featured Replies

Hi,

 

I have created a website with an accordion styled navigation.

 

I've been asked to keep the menu open when the user clicks on a sub menu page.

 

I have been trying all day to find a solution but to no avail.

 

If there's anyone who could point me in the right direction of a fix or another method of creating the same naviation, I be most obliged.

 

Here a link http://www.karrada.com/

thanks

 

 

You could try something like html

 

<body id="invest" onload="clickMenu('menu')" style="zoom: 1;"><!--added id to body-->
<li class="sub investe"><1--added class to parent li-->

do the same on the project page but with proj as id and proje as class

 

css

 

 

#invest .investe ul, #proj .proje ul{display:block;}

I think that should work

Edited by mteam

  • Author

Thanks mteam!

 

That worked a treat!

Edited by GAR-E

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.