I'm trying to display an image with opacity on top of a form in HTML, but the issue is that the form input becomes unclickable when the image is positioned over it. Is there a way to achieve this without setting the image as a background or creating a Photoshop file to use as a background? I prefer to have the image displayed on top of the form content rather than underneath.
Additionally, I am utilizing Bootstrap in my project.
CSS:
.scorpion {
width: 550px;
opacity: 0.3;
z-index: 0;
position: absolute;
right: 480px;
bottom: 250px;
}
<form name="Questions-me" method="post" id="Questions-me" action="">
<legend>About Me</legend>
<label>1- What is my favorite color?
<br>
<input type="color" name="color" id="color">
</label>
<label>2- What is my favorite shape?
<br>
<div class="row">
<div class="checkOption">
<input type="radio" name="shape" id="shape-heart"> Heart
<br>
<input type="radio" name="shape" id="shape-pentagone"> Pentagone
<br>
<input type="radio" name="shape" id="shape-square"> Square
<br>
<input type="radio" name="shape" id="shape-triangle"> Triangle
<br>
<input type="radio" name="shape" id="shape-rectangle"> Rectangle
<br>
<input type="radio" name="shape" id="shape-circle"> Circle
<br>
<input type="radio" name="shape" id="shape-star"> Star
<br>
<input type="radio" name="shape" id="shape-cross"> Cross
<br>
</div>
</div>
<figure>
<img class="scorpion" src="img/orangeScorpion.png" alt="orange scorpio image">
</figure>
</form>