HTML Table Text Vertical Align
From w3cyberlearnings
Contents |
HTML Table Vertical Align
Set vertical align for text or content by using CSS.
Example 1 TRY-IT
To set vertical align to top.
<style> table { padding:8px; border-spacing: 3px; } th,td { height:50px; border:1px solid black; width:50px; vertical-align: text-top; } </style>
Example 2 TRY-IT
To set the vertical align to bottom.
<style> table { padding:8px; border-spacing: 3px; } th,td { height:50px; border:1px solid black; width:50px; vertical-align: bottom; } </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