I've got myself into something I do not quite understand regarding z-index. I've read around a lot about z-index not being as straight forward as one could guess so after trying everything out myself I'll try to specify my problem in hope for a solution!
For me it comes down to 4 items that makes it complicated:
1 row with a background color with z-index: 0
.
1 fixed
div that follows with scroll with z-index: 1
.
1 row with a background color with z-index: 2
(that's suppose to go on top of the fixed
div).
1 fixed
menu with z-index: 3
(that's suppose to go on top of everything else).
My problem is that my menu falls beneath the row with z index: 2
even though it has z-index: 3
, and because of the fixed
div with z-index: 1
I cannot give it a lower value than 2!
The only solution I've found is if I take away any z-index from my row with z-index: 2
, but then it falls beneath my fixed
div and the problem repeats itself.
If anyone want to have a look to better understand my problem, here's my work in progress: http://www.johnmorganstudios.se/client-sevn