PDA

View Full Version : how to put a backgound image in table


nokwaks
11-22-2006, 06:03 AM
This code works fine and previews in my browser as I want it to, but my validater says: backgound has no attribute. How do I correct this? <td width="100%" align="center" background="graphic_b1.gif">

Arbitrator
11-22-2006, 06:26 AM
The align, background, and width attributes are deprecated (out‐dated, obsoleted) and do not exist for table elements in HTML 4.01 Strict. You need to use their CSS equivalents; those would be the text-align, background-image, and width properties in this case, respectively.