Forum Moderators: not2easy

Message Too Old, No Replies

Table background

image in a table for backgound?

         

Blelisa

3:28 pm on Aug 6, 2003 (gmt 0)

10+ Year Member



I would like to set an image as the backgroung in a cell in my table (instead of just a color) is that possible and if so what is the tag for it?

Thank you

AWildman

4:50 pm on Aug 6, 2003 (gmt 0)

10+ Year Member



In a style sheet, make a class like so:

.imgcell{background: url(imgurl.jpg) no-repeat¦repeat-x¦repeat-y;}

then in your html...

<table>
<tr>
<td class = "imgcell">blah</td>
</tr>
</table>

Good luck using background images in table cells on NN 4. To begin with, use an absolute URL if you need to support NN 4x.

Vicki

7:11 pm on Aug 15, 2003 (gmt 0)

10+ Year Member



If you don't want to use CSS and don't mind if the image repeats, here is another option:

<TD background="filename.gif">