I want to position a div in the middle of the screen, above all other elements so it makes them unclickable and covers them with its background.
.myElement {
position: absolute;
top: 50%;
left: 50%;
z-index: 1;
background: white;
}
So far, I have only managed to center the element. However, the white background does not cover the whole screen, it covers 1/4 of the screen and it does allow for the other elements below it to be clicked.
I am new to .css styling so I would be glad if someone could help me achieve the wanted result.