Currently, I am in the process of developing a simplistic game through the use of HTML and CSS. The game consists of a background image portraying an alleyway, and my objective is to incorporate additional images on top of this background as clues within the game. However, I seem to be facing challenges when it comes to positioning these images accordingly.
One particular element that I am struggling with at the moment is a PNG image of a dagger, which I intend to position above the alleyway background image. Any guidance or assistance in achieving this would be greatly appreciated. You can find the site here
Below is the HTML code:
<body>
<div id="logo">
<img src="images/key.jpg" width="3%" height="3%"/>
</div>
<a href="abduction.html" class="back">Back</a>
<a href="scene2.html" class="next">Next</a>
<div class="backing">
<img src="images/scene1.jpg" width="600" height="600"/>
</div>
<img src="images/dagger.png" width="10%" height="10%" id="dagger" />
</body>
</html>
And here is the CSS code:
.backing img {
position:relative;
z-index:-10;
float:left;
margin-left:12%;
/* box-shadow: inset 0 0 50px 50px #FFF;
-moz-box-shadow: inset 0 0 50px 50px #FFF;
-webkit-box-shadow: inset 0 0 50px 50px #FFF; */
-moz-border-radius-: 50px;
border-radius: 50px;
margin-bottom:5%;
margin-top:1%;
}
.next {
position:relative;
margin-left:2%;
z-index:200;
}
.back {
position:relative;
margin-left:32%;
z-index:220;
}
#dagger {
position:relative;
z-index:300;
}