View Full Version : ddAccordion Glossymenu Script

04-30-2011, 05:24 PM
1) Script Title: ddAccordion.js

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

3) Describe problem: Please see post in CSS forum describing problem. http://www.dynamicdrive.com/forums/showthread.php?t=62102

05-06-2011, 02:54 AM
VICTORY! It was Yahoo! JavaScript being above the HEAD tags. That threw all versions of IE into quirks mode. In quirks mode, emulating IE 5.5 with all its proprietary weirdness, IE "thinks" elements should inherit the styles of elements above them in the document flow whether they are in a position to inherit or not. And so the little + image, even though it was absolute positioned, was inheriting the 24 pixels of left padding in the containing A tag. Simply adding the zoomfix cured it, forcing the IMG tag to be treated by IE as hasLayout. I gave the image a zoom: 1; in the CSS, which means nothing in any real browser as of today, but tells IE to take that element out of quirks mode and put it where the heck the CSS says it goes.

Sheesh. Trapped between Microsoft and Yahoo! with both giants both insisting on ignoring standards and letting us poor mushrooms adapt -- no wonder my brain was melting.

05-06-2011, 05:47 PM
Thanks for sharing that, I'm sure it'll benefit some other people down the line.