Which of the following statements is true about z-index in CSS? code example
Example: css z-index
#nav {
position: fixed;
...
z-index: 2;
}
#main {
position: absolute;
...
z-index: 1;
}
#nav {
position: fixed;
...
z-index: 2;
}
#main {
position: absolute;
...
z-index: 1;
}