I am trying to have 2 divs totally overlapping: one div for a menu controller, one div for a menu. The menu controller will catch all the mouse events, make the menu div disappear, etc. I have settled most of it already, but I cannot manage to have the controller div on top of the menu div. To check the positioning, I change the background color of the controller in order to see if the menu is hidden.
My code is at the following location: http://codepen.io/3MO/pen/mJKeKg. The main idea is the following:
   #menu {
        z-index: 0;
        top: 0px;
        position: absolute;
        width: 100%;
        height: 150px;
        background: linear-gradient(90deg, rgb(60, 60, 60) 40%, white 49%, white 51%, rgb(60, 60, 60) 60%);
        background-repeat: no-repeat;
        background-clip: text;
        text-fill-color: transparent;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        font-size: 16px;
        cursor: auto;
    }
    #menuController {
        z-index: 10;
        top: 0px;
        position: absolute;
        width: 100%;
        height: 150px;
        background-color: red;
    }
I tried position:relative and position: absolute for both divs, no luck so far. Can you tell me what I do wrong?
Thanks!
 
     
     
    