awasson
01-08-2003, 12:42 PM
I picked up this tip from the good folks at www.sitepoint.com.
I often have the need to place an image in the background of a table for a form, or some sort of fancy background effect to set of the text or sometimes... Placing a JPG behind a transparent gif for really cool effects.
The problem with this is Netscape, the scourge of all Web Builders. Netscape will tile an image placed in a table background unless the table has only one cell. There are a few work arounds, but this is probably the most straight forward.
If you add background="image.jpg" to your <table> or <td> tag, Netscape 4 may do some wacky things. It will make that image the background of every cell, instead of placing it behind the entire table. It will even place the image into any child tables. To make the image display behind the entire table, you first need to place the image in a parent table, and then add background="" to the inside table.
<table background="image.jpg">
<tr><td>
<table background="">
<tr>
<td>Cell 1</td>
<td>Cell 2</td>
</tr></table></td></tr></table>
Experiment a bit, the background="" works wonders!
I often have the need to place an image in the background of a table for a form, or some sort of fancy background effect to set of the text or sometimes... Placing a JPG behind a transparent gif for really cool effects.
The problem with this is Netscape, the scourge of all Web Builders. Netscape will tile an image placed in a table background unless the table has only one cell. There are a few work arounds, but this is probably the most straight forward.
If you add background="image.jpg" to your <table> or <td> tag, Netscape 4 may do some wacky things. It will make that image the background of every cell, instead of placing it behind the entire table. It will even place the image into any child tables. To make the image display behind the entire table, you first need to place the image in a parent table, and then add background="" to the inside table.
<table background="image.jpg">
<tr><td>
<table background="">
<tr>
<td>Cell 1</td>
<td>Cell 2</td>
</tr></table></td></tr></table>
Experiment a bit, the background="" works wonders!