Pls can someone explain how z-index works.
For example, with this setting for z-index:
<style>
img {
position: absolute;
left: 0px;
top: 0px;
z-index: -1;
}
</style>
you will get:
But if you change the value of the z-index to 1 you get the following:
As you can see the image is now in front of the text or on top of the background layer.
Thank u very much.
1 Like
Yeah it was very helpful.
Pls how do I signup for this w3school.