I have either a div element, or td element in a table that is editable, i.e. you click the element and popup lets you edit the text. I would like to be able to add an "edit image" in the top left hand corner of the editable element. At the moment, all I have is when you rollover the element, the background changes to yellow to indicate. Would like the image to popup which is nicer. Tried using an absolute div, but not sure if I have the style settings correct as it does not work correctly.
<td>
<div style="position:absolute; display:inline"><img src="/edit.png"/></div>
<p>This would be the normal text that is editable</p>
</td>
I would be adding the div using jQuery on rollover with a prepend.