Add the z-index:999;
to class menu
also.
.menu
{
...
z-index:999;
}
Edit: to document for posterity:
The z-index
is equivalent to the position in the Z coordinate; the Z axis is taken as the one that "exits" from the screen and grows towards the user’s face. That is, the higher the Z index, more to "near" the user the element will, overlapping those with lower Z-coordinate.
The value of 999 was a suggestion, since you already use z-index: 1
and z-index: 999
and this seems to work well (there was no complaint regarding the initial layout of the components, only in relation to menu items).
However, as @Felipestoker pointed out, you can do a study of the coordinates according to organizing the sequence in which the items overlap in the Z axis. If, for 2 elements A and B, there is no competition for space in the XY plane (A will never overlap B), the same value of z-index
can be applied to both without prejudice.
I don’t know if I got it right but see if removing the z-index class separator is what you seek.
– Bruno Augusto