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

    When I place dhtml menu code in a CSS div element the submenu's all drop down a couple pixels

Return to Recent Questions


Q: When I put dhtml menu code inside a CSS-defined div element (for absolute page placement) the submenu's all drop down a couple hundred pixels.


A: The problem is that the script of dhtml menu code can't get css properties of the object if they are described in separate .css file. 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;"

to the

<div id="menu">

So, you'll have:

<DIV id="menu" style="POSITION: absolute;">
Try that.





Return to Recent Questions

   
Copyright (c) 2012, DHTML-Menu.com
Home  |  Product Info  |  Samples  |  Download  |  Purchase  |  FAQ  |  Site Map  |  Write Us
All rights reserved. bootstrap parallax | best website design software | top free website builder | bootstrap popup | css menu maker