View Full Version : tb background="image.jpg"


Incendio
03-30-2006, 10:56 AM
is is possible to put a backgrund picture in a td cell?

<td width="70%" class="bottom" background="bottom.jpg">nanaa</td>
</tr>
</table>

I tried that but it wouldn't work. Basicly, I want the tezt "nanaa" to be on top of the bottom.jpg. But the bottom.jpg wont show

uday
03-30-2006, 09:45 PM
you can try using css classes like this:

.tdbackground {background-image:url('URL OF PIC');}

then, wherever your put the cell:

<td class="background">Content of Cell</td>

Incendio
03-31-2006, 08:52 AM
I tried that way but it wouldnt worjk :(

war59312
04-03-2006, 03:39 AM
Like this?

<table border="2" cellspacing="0" width="70%" style="background-image: url('bottom.jpg'); ridge #800000">nanaa</table>

J to the izzosh
04-04-2006, 04:10 AM
you can try using css classes like this:

.tdbackground {background-image:url('URL OF PIC');}

then, wherever your put the cell:

<td class="background">Content of Cell</td>

The only problem with the above is that the class attribute for the <td> element should have a value of "tdbackground" and not just "background". Either that, or the class should be changed from .tdbackground to just .tdbackground in the style sheet.

dolce shanti
04-04-2006, 04:13 AM
This is going to sound silly, but just in case...

are you sure you have the correct file name? Maybe the case is wrong...you never know :) I've done it many-a-time. The code looks like it should work...