PDA

View Full Version : Group Image and Text as 1 object



supersav144
17 Sep 2009, 07:49 AM
Im actually making an application which uses the clipboard to insert a shortcut into a file, however its being inserted using html and thus i am here looking for help. My problem is that i have an image and some text being inserted but as they are being inserted into say a word document you can delete the text whilst still having the image there, this however is not what i want. I want it so that the image and text are basically 1 object and so if the text is deleted then the image is also deleted! I currently have the image and text on 2 separate rows of a table so thought maybe theres a way to lock the table or something. If you have any solutions please help me! My code is as follows:

<html>
<body>
<div>
<table>
<tr>
<td align=""center"">
<a href=""http://gcms.gsk.com:8080/workgroup/drl/objectId/0901497e80264c9 ""><img src=""{0}""></a>
</td>
</tr>
<tr>
<td align=""center"">
<p>
<font size=""2"" face=""Calibri"">
my link
</font>
</p>
</td>
</tr>
</table>
</div>
</body>
</html>