The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › CSS › How to display sub-menu on click
Hi, im stuck with this code, i want display the menu with a click and now is with hover
https://codepen.io/enbuilding/pen/KKPQaaZ
anyone can give me an advice?
Thanks in advance
You could do it something like this maybe: https://codepen.io/jeroenreijs/pen/jONpdBp
Change the hover styling to className .active and toggle this active class with a little javascript.
.active