td text-align: center; and border : td text « Tags « HTML / CSS






td text-align: center; and border

   

<html>
<head><title>Tables</title>
<style type="text/css">
table {
    border-width: medium;
    border-color: navy;
    border-style: groove;
}

td {
    text-align: center;
    background-color: gold;
}
</style>
</head>
<body>
<center>
<table>
    <tr>
        <td>CSS</td><td>IS</td>
    </tr>
    <tr>
        <td>VERY</td><td>COOL!</td>
    </tr>
</table>
</center>
</body>
</html>

   
    
  








Related examples in the same category

1.'abbr' sets the abbreviated text for the cell and replace the cell contents
2.'ch' is a character that specifies the alignment of subsequent text
3.Text Indent
4.td text-align: center;
5.td text-align: left;
6.td text-align: right;
7.td text-align: justify;
8.td text-transform: lowercase;
9.td border: thin solid black;text-align: center;font-weight: bold;