Forum Moderators: not2easy
I am trying to get an img element inside a <td> cell to align to the right hand side of the cell. How can I do this?
I tried this but it doesnt work.
<td colspan='15' class='resSingle' >
Here is some test text
<img src="//some url" style="position:relative;right:0px" />
</td>
Any suggestions?
Thanks
Nat
<td colspan="15" class="resSingle">
<span style="float: left;">Here is some test text</span>
<img src="//some%20url" style="float: right;">
</td>
...is totally unnecessary for such a simple task. There's no need that I can see to alter the original markup; adding one line to the css file will suffice:
.resSingle img { float:right; }
-b