Jump to: navigation, search

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
  1. HTML - Table
  2. HTML - Table Border
  3. HTML - Table Column
  4. HTML - Table Row
  5. HTML - Table Color
  6. HTML - Table Cell Spacing and Padding
  7. HTML - Text Align
  8. HTML - Text Vertical Align
  9. HTML - Table Caption and Summary
  10. HTML - Table thead, tbody, tfoot
  11. HTML - Inner Table
  12. HTML - Table Vertical Line
  13. HTML - Table Horizontal Line
Navigation
Web
SQL
MISC
References