I have a site with a log-in and a contact module, which is sliding out from the top-left side of the page. I have only one problem: the log-in module is working fine, but the contact module is going underneath the text, rather than above it. I set z-index: 999999; but, it still isn’t working. I’m using position: fixed;
I have a site with a log-in and a contact module, which is sliding
Share
Moving #iUngicontactForm from the table to the body tag will fix it.
The problem is that the z-index of an element is inherited from it’s parent and it only applies to sibling elements. And as you’re using fixed positioning, it’s a quick fix.
So instead of something like this:
do this: