Hey guys,
I’m trying to create a unique 3D experience on my product page by making the main product image overlap the header. I was able to easily achieve the look I wanted using Z-index, but I just realized that the overlap is not allowing users to click part of the menu. I tried fixing it by giving the menu content a higher Z-index value, but nothing seems to be working for me. Can you help?
Here’s what I’m trying to accomplish: header bar set as first layer, product image set as second layer, and navigation menu items set as third layer.
Here’s the code I’m using right now:
header {
z-index: 1;
}
.product-image.main {
max-height: 590px;
display: block;
margin: 10px auto 0px auto;
transform: rotate(18deg) scale(1.17);
z-index: 2;
}
As I said above, I’ve tried assigning “z-index: 3” to the menu using various classes and ID’s, but nothing seems to be bringing it to the top layer. Any ideas?
Thanks in advance for the help!
