HTML Table Horizontal Line
From w3cyberlearnings
Contents |
HTML Table Horizontal Border
Use CSS to define the table horizontal border.
Example 1 TRY-IT
This example, we set the horizontal border at the bottom of each cell.
th,td { border-bottom-style: solid; border-bottom-color: #00F; border-bottom-width: 8px; }
Example 2 TRY-IT
This example, we set the table horizontal border at the top of each cell border.
<style> th,td { border-top-style: solid; border-top-color: #2b81af; border-top-width: 8px; } </style>
Related Link
Table
- HTML - Table
- HTML - Table Border
- HTML - Table Column
- HTML - Table Row
- HTML - Table Color
- HTML - Table Cell Spacing and Padding
- HTML - Text Align
- HTML - Text Vertical Align
- HTML - Table Caption and Summary
- HTML - Table thead, tbody, tfoot
- HTML - Inner Table
- HTML - Table Vertical Line
- HTML - Table Horizontal Line