newcoder1010 Posted May 9, 2017 Share Posted May 9, 2017 Hello, .callus {position:fixed;} When I scroll down, other contents are on top of this "callus" block. How can I force this block "callus" to be on top layer? So when I scroll down, this block stays on top layer. I tried with z-index:auto/initial/inherit; None worked. .callus {position:fixed;z-index: auto|number|initial|inherit;} Thanks. Link to comment Share on other sites More sharing options...
dsonesuk Posted May 9, 2017 Share Posted May 9, 2017 (edited) Its z-index: with a value of auto, or number or initial or inherit not z-index: auto|number|initial|inherit; For a fix you have to have a numeric number value higher than the elements that currently overlap. You may have to give these elements that currently overlap position: relative; which may on its own fix the problem, if not give them a z-index level lower than .callus element. Edited May 9, 2017 by dsonesuk Link to comment Share on other sites More sharing options...
newcoder1010 Posted May 9, 2017 Author Share Posted May 9, 2017 z-index:1030; Worked. Thanks much. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now