I have 2 images and they're both in the same div. I've set the z-index
of one image to -1 and am moving it down using margin-bottom
.
This is my code:
<div data-role="page" id="Mycom" class="background">
<div data-role="header" class="header" data-position="fixed" data-tap-toggle="false"></div>
<div data-role="content">
<center>
<h2>Headlines</></h2>
<div> <a href="#" id="indrotate"><img src="Image/right.png" style="width:30%;z-index:-1;margin-bottom:-30% !important;margin-left:70% !important;" /></a>
<img src="SlicedImages/bground2.png" id="indimage" style="height:auto; max-height:80%; width:auto; max-width:90%;" />
</div>
</center>
<center> <a href="#" data-role="none" data-inline="true" data-transition="none"><img src="Image/Next.png" width="200px" height ="10%"></a>
</center>
</div>
</div>
<!-- ind Page end -->
and in my js file I have:
$(document).on('pagebeforeshow','#Mycom',function(e,data){
$('#indrotate').on('click',function(){
alert("indrotate");
});
});
What's the mistake I am making?