(c) 2007, DHTML-Menu.com
 
   
   
  Support
  Recent Questions
  Write To Support
 

    I'm trying to position my css navigation menus inside absolutely positioned DIV.

Return to Recent Questions


Q: I'm trying to position my css navigation menus inside absolutely positioned <DIV> tags. If the <DIV> tag has style="position:absolute; top:100px; left:50px;" in the actual tag, css navigation menus 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 css navigation menus 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:
   
Copyright (c) 2012, DHTML-Menu.com
Home  |  Product Info  |  Samples  |  Download  |  Purchase  |  FAQ  |  Site Map  |  Write Us
All rights reserved. criador de site gratis | web design software | bootstrap buttons | HTML5 Video Player | css slider