PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Thursday, June 30, 2022

[FIXED] Why does my fixed header is not above all elements?

 June 30, 2022     css, css-position, shopify, z-index     No comments   

Issue

I've got a problem on my client's website, here is the link: https://www.wisetrailrunning.com/products/nanoshell-160g-pour-homme

I don't think it's a Shopify problem, I think its css.

When you scroll down, the fixed header is above certains elements, and behind certains elements.

I've tried to set a z-index to the element and his parents. I've tried to set opacity 1 to the element and his parents. I've tried to set background color to white to the element and his parents. I've tried to set the positions to the element and his parents.

Nothing worked.

I've searched for many topics on the website but didn't find a working answer after few hours.

Thanks a lot for your help !


Solution

I've checked your css and should work only adding this

.transition-body {
z-index: 1;
position: relative;
}

That happens because z-index work in a way you have to put it on main parents. That's why I added it on .transition-body and not in header. Because .transition-body is the parent of header and it's in the same html level than .shopify-section



Answered By - Eric
Answer Checked By - Senaida (PHPFixing Volunteer)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing