PDA

View Full Version : background img


landon11
08-01-2002, 02:56 PM
how do I get an image to be the background of a table cell and

have the cell be the exact size of the image. I am using:

style="BACKGROUND-IMAGE: url ; background-repeat: no-repeat;"

but the whole image is not showing.

Thanks

applesauce
08-01-2002, 03:31 PM
some of the image is showing? maybe the image is larger than your cell. try setting your cell height to match your image if this is the case.

Sk8er9547
08-01-2002, 04:06 PM
just add your image width and height for the width and height of the table cell.

style="BACKGROUND-IMAGE: url ; background-repeat: no-repeat; width: 100px; height: 100px;"

landon11
08-01-2002, 06:34 PM
Thank you. That is what I will do but I thought that maybe there

was some way that the cell would just fit around it like if you just

did <td><img src></td>

Thanks

boxer_1
08-01-2002, 06:38 PM
Originally posted by landon11
Thank you. That is what I will do but I thought that maybe there

was some way that the cell would just fit around it like if you just

did <td><img src></td>

Thanks

That would be the case if you inserted an image inside the table cell, but not when you're specifying an image as a background ;).