Can a picture be a background for a cell in a table?

XML, Perl, Python, and other languages can be discussed here, even if it isn't PHP (We might forgive you).

Moderator: General Moderators

Post Reply
User avatar
matrix
Forum Newbie
Posts: 2
Joined: Mon Nov 03, 2003 2:28 am
Location: India
Contact:

Can a picture be a background for a cell in a table?

Post by matrix »

This might be an odd question to this forum. But, if someone can help me, would be great. I need to know in HTML whether is it possible to have a background for a cell in a table as image file. Is it possible to set the background as image file and have the texts filled in the cells?
If so, how? If someone can help me at the earliest, it would be fine.
Thanks in advance.

Neo
User avatar
vigge89
Forum Regular
Posts: 875
Joined: Wed Jul 30, 2003 3:29 am
Location: Sweden

Post by vigge89 »

yes it is, try <td background="img.gif">
qads
DevNet Resident
Posts: 1199
Joined: Tue Apr 23, 2002 10:02 am
Location: Brisbane

Post by qads »

if you have a template based site then use CSS

Code: Select all

.bg&#123;
background-image: url(path/to/image/here);
&#125;

<td class="bg">
Post Reply