Place picture on picture in table cell?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I would like to place a picture on top of another in a table cell. I have a
table of photographs of items for sale, and would like to place a "sold"
sticker on top of some. Can I do this? I looked at layers, but it would seem
that the positioning would not work.

Help appreciated.

Charlie
 
One solution:
Set your images as background images in each cell: use CSS to prevent image
tiling, and use transparent .gif to hold each cell's dimensions. The
transparent .gif can be replaced by a sold sticker as and where required.

<td style="background: url(images/picture123.jpg) center no-repeat;"><a
href="salespage.asp?picid=123"><img src="transparent.gif" width="200"
height="150" alt="" title="click to buy"></a></td>
 
Thanks, I'll try this.

Ronx said:
One solution:
Set your images as background images in each cell: use CSS to prevent image
tiling, and use transparent .gif to hold each cell's dimensions. The
transparent .gif can be replaced by a sold sticker as and where required.

<td style="background: url(images/picture123.jpg) center no-repeat;"><a
href="salespage.asp?picid=123"><img src="transparent.gif" width="200"
height="150" alt="" title="click to buy"></a></td>
 
Back
Top