My goal is to display a delete icon when the user hovers over an image. The hover effect is working fine, but I'm struggling to position the x button in the top right corner of the image.
HTML
<div class="photos">
<div id="images">
<a href=# data-lightbox="roadtrip">
<img class=img width=100 height=100 alt='Unable to View' src=""></a>
<a href="#" class="del_photo" id=""><img src="images/icon_del.gif" border="0" /></a>
</div>
</div>
CSS
#images {
display: inline-block;
float: left;
width: 100px;
height: 100px
}
.del_photo {
display: inline-block;
float:right;
margin:5px 5px 0 0;
}