|
I'm trying to position my javascript menu drop down inside absolutely positioned DIV.
Return to Recent Questions
Q:
I'm trying to position my javascript menu drop down inside absolutely positioned <DIV> tags. If
the <DIV> tag has style="position:absolute; top:100px; left:50px;" in the
actual tag, javascript menu drop down seems to work correctly submenus have a 100px offset in the y direction and
a 50 pixel offset in the x direction. This is with no change to the .js data
file (I have absolutePos=0;).
Is this a known issue, and is it planned to be fixed soon?
A:
Problem is that the javascript menu drop down can't get the value of "position" attribute of the object if the object doesn't have this property within inline style
(style="position:absolute; top:100px; left:50px;"). To get the value you should move .css style into style="" attribute.
You should add style="position:absolute; top:100px; left:50px;"
to the
<DIV class=department-menu>
So, you'll have:
<DIV class=department-menu style="position:absolute; top:100px; left:50px;;">
Return to Recent Questions
Related:
- May 10, 2009 - Since I installed the css menu vertical on our website the homepage start loads slowly...
- May 23, 2009 - I can see only the code generated by the GUI tool.How should I install simple css menu?
- May 25, 2009 - How can I setup size and color of the font for individual button in the dynamic menu items?
- Jun 27, 2009 - Does this web menu creator need Java Virtual Machine installed on the computer?
- Jul 02, 2009 - Is it possible to install my pulldown menu html on the page made with Yahoo sitebuilder
- Jul 12, 2009 - Is it possible to set target attribute individually for the dynamic pull down menu items?
- Jul 17, 2009 - Can I install and run this css menus on a server running OS X?
- Oct 01, 2009 - When I place dhtml menu code in a CSS div element the submenu's all drop down a couple pixels
- Oct 10, 2009 - Is there a way to install down menu using javascript correctly if we use nested frames?
- Oct 14, 2009 - Do I have to buy a license for each website I install this javascript onmouseover menu
- Nov 20, 2009 - I have some problems with installation of the javascript menu bars...
|