I am currently working on a project where I need to position a button over an image. My reference for this task is the W3schools CSS website, and I have made some modifications to the code provided in the link here: https://www.w3schools.com/css/tryit.asp?filename=trycss_zindex
Below is a screenshot of the altered code.
Altered Code Snippet:
<!DOCTYPE html>
<html>
<head>
<style>
div {
height: 200px;
width: 400px;
border: solid green;
}
img {
position: relative;
z-index: -1;
}
</style>
</head>
<body>
<div >
<img src="w3css.gif" width="100%" height="100%">
<button> button </button>
</div>
</body>
</html>