PDA

View Full Version : Error in Glossy Accordion Menu



sankou
03-03-2012, 10:58 PM
1) Script Title:
Glossy Accordion Menu

2) Script URL (on DD):
http://www.dynamicdrive.com/dynamicindex17/ddaccordionmenu-glossy.htm

3) Describe problem:
I already resolved the issue, but I figured you guys might want to know about it. The error is in the css for the script:



.glossymenu a.menuitem .statusicon{ /*CSS for icon image that gets dynamically added to headers*/
position: absolute;
top: 5px;
right: 5px;
border: none;
}


Setting the position to absolute causes issues in both Google Chrome and I believe Firefox, it's fine in Internet Explorer. Basically, the 'plus' image on all sub-menus below the one you're clicking will keep moving down further and further instead on coming back up where it needs to be. To fix it and make the script more compatibly with all browsers, remove position: absolute; and replace it with float:right;. I would then also add height, width, and margin.