View Full Version : background of table


Daffyduck021
05-15-2003, 11:19 PM
Even though I've read how to put the background in my table it still isnt working. My whole page is divided up as a table like this:

<!--START WHOLE TABLE-->
<table width="600" border="0" cellspacing="0">
<tr>

<!--START COL #1-->
<td width="300" valign="top" bgcolor="#FFFFFF" height=800>
<img src="me.gif" width="100" height="800">
<br>
</td>

<!--START COL #2-->
<td width="100" valign="top" bgcolor="#FFFFFF" height=800>
<br>
</td>

<!--START COL#3-->
<td width="200" valign="top" bgcolor="#FFFFFF" height=800>
<br>
</td>
</tr>
</table>

when i put the code <table background="image.gif"> right after <table width="600" border="0" cellspacing="0"> it still doesnt work. help me please! :(

starlet
05-15-2003, 11:43 PM
You should be making the 2 codes merge together, not starting a new table tag...so...

<table width="600" border="0" cellspacing="0" background="image.gif">

If your sure your doing that bit right then make sure you have the image uploaded and linked correctly...and if all else fails post a link to the site or your full source code :)

zangerbanger
05-16-2003, 01:02 AM
If you want, you can also add the "background="image.gif" to an individual <td> tag so that your individual cells have that certain background.

amicus
05-16-2003, 04:45 AM
I GOT IT :), thanks to starlet and zangerbanger. i combined both their ideas and embedded 2 tables. i put a table around your table (inner table) and put the background image into the 'td' tag of my table (outer table)


<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td background="me.gif">
<table width="600" cellpadding="0" cellspacing="2" border="0">
<tr>
<td width="300" valign="top" height=800>START COL #1</td>
<td width="100" valign="top" height=800>START COL #2</td>
<td width="200" valign="top" height=800>START COL #3</td>
</tr>
</table>
</td>
</tr>
</table>

Xiphias
05-16-2003, 11:49 AM
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td background="me.gif">
<table width="600" cellpadding="0" cellspacing="2" border="0">
<tr>
<td width="300" valign="top" height="800">START COL #1</td>
<td width="100" valign="top" height="800">START COL #2</td>
<td width="200" valign="top" height="800">START COL #3</td>
</tr>
</table>
</td>
</tr>
</table>

all attributes should be quoted :)