I've been working on a website that requires the use of the following horizontal accordion javascript:
http://www.scriptiny.com/2008/05/horizontal-javascript-accordion-menu/
The problem is that the script is written to expand a panel to a "pt" value. I want to be able to expand it to a "%" value to avoid issues of users with different screen sizes (i.e. using a mobile device).
I've been working on this forever - trying to edit the javascript, using css instead, etc...- and can't seem to make it work out. Any ideas?
Replace all
px to %
in that slidemenu.js. Try after taking a backup :-)Have a look at this Codepen demo I've prepared here.