Share this Page URL

Shielding Users of Earlier Browsers > Using the Invisible Object Method - Pg. 166

SATURDAY EVENING (BONUS SESSION) Working with Tables 163 Horizontally Aligning Table Cells You can use the ALIGN attribute to horizontally align the content of indi- vidual TD or TH elements. Use the ALIGN attribute in the TH elements at the start of the rows to left-align the row headings (see Figure 5.12): <table align="center" border="6" cellspacing="6" cellpadding="6" width="75%"> <tr><th></th> <th>Jan</th> <th>Feb</th> <th>Mar</th> <th>Totals</th></tr> <tr align="right"><th align="left">Alberts</th> <td>$160,251</td> <td>$245,600</td> <td>$132,000</td> <td>$537,851</td></tr> <tr align="right"><th align="left">Brown</th> <td>225,255</td> <td>115,995</td> <td>132,875</td> <td>474,125</td></tr> <tr align="right"><th align="left">Gilbertson</th>