|
<TABLE ...>BACKGROUND = "URL"| Usage Recommendation |
|---|
This effect is done better with styles. See Table Background Colors and Images |
BACKGROUND

Set BACKGROUND
<TABLE CELLPADDING=8 CELLSPACING=0 BACKGROUND="deepsea.gif">
which gives us this table:
| blah blah | yeah yeah |
| groovy dude | right on |
Notive that we run into the classic problem with background images: the letters don't show up against the background. To fix this you
could go to a lot of trouble using the
<FONT ...><HEAD>
<STYLE TYPE="text/css">
<!--
.deepsea, .deepsea TD, .deepsea TH
{
background-image: url('deepsea.gif');
background-color:blue;
color:white;
font-family: sans-serif;
font-weight:600;
}
-->
</STYLE>
These rules state that for any element with its class set to
deepsea, or any
<TD ...><TH ...>deepsea element, there are several rules:
deepsea.gif
deepsea class. Notice in the following code that we don't need to set the font colors for each individual cell:
<TABLE CELLPADDING=8 CELLSPACING=0 CLASS="deepsea"> <TR> <TD>blah blah</TD> <TD>yeah yeah</TD> </TR> <TR> <TD>groovy dude</TD> <TD>right on</TD> </TR> </TABLE>
which gives us this table:
| blah blah | yeah yeah |
| groovy dude | right on |
For more information about table background colors and images see Table Background Colors and Images.
Copyright 1997-2002 Idocs Inc. Content in this guide is offered freely to the public under the terms of the Open Content License and the Open Publication License. Contents may be redistributed or republished freely under these terms so long as credit to the original creator and contributors is maintained.