|
|
The javascript menu sub-menus drop down off to the side in a layout heavy on CSS
Return to Recent Questions
Q:
We've been using Deluxe Menu for a couple of years now and we're very
pleased with it. Recently, we switched to a layout heavy on CSS, and
when we insert the javascript menu code into an absolutely-positioned div, the menu
appears where it should, but the sub-menus drop down off to the side in
both Firefox and IE. I've tried adjusting the x-offsets in the
configuration file with negative values to bring them closer to the
top-level menu item, but this doesn't seem to do the trick completely.
I also went through a number of sample questions in the support section
of the Deluxe Menu site, but I haven't been able to find any sort of
resolution.
If you have any suggestions, I'd be very appreciative.
A:
See, the problem is that the script can't get css properties of the object if they are described in separate .css block (or file).
In other words, you can't get the value of "POSITION: absolute" attribute of the object if the object doesn't have this property within inline style (style="POSITION:
absolute;"). To get the value you should move .css style into style="" attribute.
Please, try to add your
css file -> inline css, for example:
You should add style="POSITION: absolute; TOP: 0px"
to the
<div id=div_name>
So, you'll have:
<DIV id=div_name style="POSITION: absolute; TOP: 0px">aaspot_US~.Hration...M&Project Tool Configuration.
Try that.
Return to Recent Questions
Related:
- Sep 02, 2006 - Can I show / hide the javascript floating menu .
- Sep 06, 2006 - The alighment of the dropdown menu is off to the right in Firefox...
- Sep 06, 2006 - Can't see my javascript vertical tree menu in FireFox.
- Sep 11, 2006 - If I use doctype the settings of the submenus in javascript dropdown menu get lost.
- Sep 15, 2006 - Are vertical menus also supported? I don't see any in the javascript menu examples.
- Sep 17, 2006 - How can your javascript onmouseover menu be set to open by click?
- Sep 18, 2006 - The submenus of the cross frame menu are offset by about 100 pixels to the right.
- Sep 23, 2006 - Is it possible that javascript drop down menus doesn't put anything on the local computer?
- Sep 23, 2006 - Is it possible that your menu call some javascript onmouseover event?
- Sep 24, 2006 - If there is a way of establishing the width at "runtime" in the javascript dynamic menu?
- Sep 26, 2006 - Firefox doesn't support the dropshadow and effects in the javascript pull down menu.
|