Answers for "z-index=0 css"

CSS
2

z-index inside z-index

You can do this, but only if the parent doesn't have a 
position: relative or absolute property on it. 
So if you remove the position: absolute from the 
first div, it'll work as expected.
Posted by: Guest on December-16-2021
7

css z-index

#nav {
  position: fixed;
  ...
  z-index: 2;
}
#main {
  position: absolute;
  ...
  z-index: 1;
}
Posted by: Guest on October-04-2020

Browse Popular Code Answers by Language