CSS Tutorial

CSS Style

CSS Layout Style

CSS Float Style

CSS Reference

CSS vertical-align property




The CSS vertical-align property set vertical side(for example table cell text-top,text-bottom etc..).


Property Values


Properties Value Description
Syntax vertical-align:value;
value   baseline
  sub (subscript)
  sup (superscript)
  text-top
  text-botom
  top
  bottom
  inherit
Allow to Allow to table elements ( All element allow to sub, sup, baseline text )
Inherited No

Example-Code:

<table border="1" width="500px">
<tr>
  <td style="vertical-align:top;"> table cell </td>
  <td> table cell </td>
</tr>
<tr>
  <td> table cell </td>
  <td> table cell </td>
</tr>
</table> 
Online Try This Code Your Self....   »

Example-Result:

Table caption
table cell table cell
table cell table cell