Die Farbe des Rahmens einer Tabelle wird mit dem Attribut bordercolor im <table>-Tag festgelegt.
<html> <head> <title>Rahmenfarbe</title> </head> <body> <table width="300" border="3" bordercolor="#FF0000"> <tr> <td>Zelle 1</td> <td>Zelle 2</td> <td>Zelle 3</td> </tr> <tr> <td>Zelle 4</td> <td>Zelle 5</td> <td>Zelle 6</td> </tr> </table> </body> </html> |
Für die Schatten-Darstellung des Rahmens kommen die Attribute bordercolorlight und bordercolordark zum Einsatz.
<html> <head> <title>Rahmenfarbe</title> </head> <body> <table width="300" border="5" bordercolorlight="#00FFFF" bordercolordark="#0000FF"> <tr> <td>Zelle 1</td> <td>Zelle 2</td> <td>Zelle 3</td> </tr> <tr> <td>Zelle 4</td> <td>Zelle 5</td> <td>Zelle 6</td> </tr> </table> </body> </html> |