Is there a way to keep text centered in a cell while right aligning an image within the same cell? When I use float:right on the image, it displays correctly but pushes the text to the left by the width of the image. Any solutions?
<table>
<tr>
<td style="text-align:center" width:"100">text
<img src="~/images/pencil1.png" height="25" width="25" style="float: right;" />
</td>
</tr>
</table>