I have problem with setting z-index in 3 containers.
The first two are for web menu, and the third one is for language select. I have no idea why the expanded menu doesn't cover the language selection.
Here is the code, thank you for your advice!
HTML:
<div id="menu">
<div class="nabidka">
<nav id="navigation">
<a class="menu_button" href="#footer_nav" onclick="toggleNav(); return false;">MENU</a>
<ul id="navigation_list" role="navigation">
<li style="padding-left: 0;"><a href="/">HOME</a></li>
......
</ul>
</nav>
</div>
<div id="lang">
language select...
</div>
</div>
CSS:
#navigation ul {
display: none;
list-style: none;
margin-left: 0;
padding-left: 0;
margin-bottom: 0;
margin-top: 20px;
z-index: 2;
}
#navigation ul.expanded {
display: block;
z-index: 2;
}
#navigation li {
display: block;
width: auto;
padding: 0;
z-index: 2;
}
#lang {
position: absolute;
top: 50px;
right: 5px;
z-index: 1;
}