Place picture on picture in table cell?

C

Charlie

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
 
R

Ronx

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>
 
C

Charlie

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>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top