Milonic provide full featured pull down web menus for some of the worlds largest companies
click here to see what it can do for you

Download Milonic DHTML Menu
Buy Milonic DHTML Menu

Back To Start Of Archive
Taken From The Forum: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:03

displaying menu in fixed div tag fails


Poster: hautzi
Dated: Tuesday June 20 2006 - 22:51:31 BST

hello,

at our website, we use a fixed header-div where the menu is displayed in:

the included menu:
Code:
    <!-- Header-->
    <div id="oben">
        <span class="ueberschrift">
            {if $pageTitle.loginname}<strong>{$pageTitle.loginname}</strong>,{/if}
            du bist {if $pageTitle.pre}{$pageTitle.pre}{else}hier:{/if} <strong>{$pageTitle.shorten|default:"unbekannt"}</strong>
        </span>

      <span id="banneroben" class="nohover"><script>dn_ads(2);</script></span>

        <!-- ***** This is the section of code you need to paste into your web pages ***** -->
        <script type="text/javascript" src="/lib/js/menu/milonic_src.js"></script>   
        <noscript><a href="http://www.milonic.com/">DHTML JavaScript Menu Powered by Milonic</a></noscript>
        <script type="text/javascript">
        if(ns4)_d.write("<scr"+"ipt type='text/javascript' src='/lib/js/menu/mmenuns4.js'><\/scr"+"ipt>");      
          else _d.write("<scr"+"ipt type='text/javascript' src='/lib/js/menu/mmenudom.js'><\/scr"+"ipt>");
        </script>
        <script type="text/javascript" src="/lib/js/menu/menu_data.js"></script>   
        <!-- **** JavaScript Menu HTML Code -->

    </div>


the "oben" css-definition:
Code:
#oben { 
position:fixed; 
z-index:0; /* fuer den Internet Explorer*/ 
background-image:url(/images/head.jpg); 
background-repeat:no-repeat; 
top:0px; 
margin:0px; 
height:105px; 
width:100%; 
border:0; 
}

in opera everything works correctly - but in firefox the submenu-items scroll down with the page

is there a possibility to fix the submenuitems as well?

the error occurs on the following website:

http://rd.diginights.com
user: menu
pass: menu


Poster: John
Dated: Wednesday June 21 2006 - 15:03:50 BST

The menu typically gets very unhappy being cooped up in a div, as it uses divs, tables, etc., in its internal structure. Can you get it out of the div?


Poster: hautzi
Dated: Wednesday June 21 2006 - 20:27:17 BST

of course, we can...

but then the menu will scroll with the page and won't be fixed at its positon.
is there any other solution for that?

this problem only exists in mozilla firefox