Chapter 23. Coloring Table Cells

Table cells in HTML have the bgcolor attribute, which controls the background color of the cell. Specifying background colors for certain cells in your layout gives your design a more graphical feel without the use of image files. Compare the layout in Figure 23.1 with the one in Figure 23.2, and you'll agree.

Listing 23.1. View Source for Figure 23.1.
 <table width="760" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="760" valign="top">Logo</td> </tr> <tr> <td width="760" valign="top"> <table width="760" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="200" valign="top">Nav</td> <td width="400" valign="top">Content</td> <td width="160" valign="top">Links</td> </tr> </table> </td> </tr> ...

Get Web Design Garage now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.