|
HTML Tip:
Table Background
by Tom Dahm,
Chief Operations Officer,
NetMechanic, Inc.
It isn't documented anywhere, but with version 4.01 Netscape Communicator began supporting the BACKGROUND attribute for the TABLE tag. Microsoft Internet Explorer has supported this attribute since version 3.0. Now it looks like Netscape has also added support for this tag.
BACKGROUND is a non-standard attribute that allows you to define an image as the background for a table. It works in much the same way as the BACKGROUND attribute for the BODY tag: if the image is small it will be tiled to fill the table. For example, see the table below:
This table has the following HTML code:
<table width="220" border="4"
cellspacing="0" cellpadding="0"
background="/images/zdnet_netmech.gif">
<tr>
<td height=110> </td>
</tr>
</table>
You should see the table appear as follows:
Note: With any tag that isn't part of the HTML standards, there is risk involved in using the BACKGROUND attribute. Some portion of your audience will be using a browser that does not support this attribute. These users won't be able to see your background image. If you decide to use this feature, be sure to first gather data on what browsers your visitors are using.
|