I am trying to position two links over an image inside a div. The links should be placed on the top-left and top-right corners of the image. I have attempted the following code:
<div class="container">
<div style="float:left"><a href="#">like</a></div>
<div style="float:right"><a href="#">share</a></div>
<img src="images/activity-image.jpg" />
</div>
However, the floating divs are pushing the image down instead of appearing over it. I want the like and share links to be displayed on the top-left and top-right corners of the image within the div. Any assistance on how to achieve this would be greatly appreciated. Thank you.