![]() |
"Bringing understanding and awareness of eBay Stores" eBay Store owners dedicated to sharing knowledge and resources for a better shopping community |
| Understanding Tables - Table Attributes II |
How about we add some color to the tables? I will use various examples below, giving you the html code in blue and the results below each example. These Table Attribute tags are:<bgcolor="color code"> sets the color of the table backgroundDon't forget that html color tags use the US spelling of color. |
| Table - centered, width 80%, border 3, table background color gray, cellspacing 0 and cellpadding 10 <table align="center" width="80%" border="3" bgcolor="#CCCCCC" cellspacing="0" cellpadding="10"> <tr> <td>Row 1, Cell 1</td> <td>Row 1, Cell 2</td> </tr> <tr> <td>Row 2, Cell 1</td> <td>Row 2, Cell 2</td> </tr> </table> RESULTS
|
| Table - centered, width 70%, border 1, table background color gray, cellspacing 0 and cellpadding 2, top cells aligned center, bottom right cell aligned right <table align="center" width="70%" border="1" bgcolor="#CCCCCC" cellspacing="0" cellpadding="2"> <tr> <td align="center">Row 1, Cell 1</td> <td align="center">Row 1, Cell 2</td> </tr> <tr> <td>Row 2, Cell 1</td> <td align="right">Row 2, Cell 2</td> </tr> </table> RESULTS
|
| Return |