That's not a script. It is style css. If it worked as intended, which it would in IE 6, not in many, if any others. It would establish the td as a container for the the absolutely positioned images. However, most browsers will not allow a td to have relative positioning. You could do it like so:
Code:
<table><tr>
<td>
<div style="position:relative;width:100%;height:100%;">
<img src="imageA.gif" class="status">
<img src="imageB.gif" class="status">
</div>
</td>
</tr></table>
But you might not notice anything different because the table and/or td would need to have a width and height established somehow. Also, if the 'status' class is identical (which, as a class selected style it would have to be) and positioned absolutely, imageB.gif would cover imageA.gif.
Floats might be a better way to position images in a table cell:
Code:
<table><tr>
<td>
<img src="imageA.gif" style="float:left;">
<img src="imageB.gif" style="float:right;">
Some text could go here and appear between the two images,
as long as there is room for it there.
</td>
</tr></table>
Bookmarks