Jump to content

How to place a block on top layer


newcoder1010

Recommended Posts

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

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 by dsonesuk
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...