HTML TABLES INDEX

Table Data Alignment

Examples of Cell Alignment
VALIGN=Top
ALIGN=Left
VALIGN=Top
ALIGN=Center
VALIGN=Top
ALIGN=Right
VALIGN=Middle
ALIGN=Left
VALIGN=Middle
ALIGN=Center
VALIGN=Middle
ALIGN=Right
VALIGN=Bottom
ALIGN=Left
VALIGN=Bottom
ALIGN=Center
VALIGN=Bottom
ALIGN=Right

  1. Use the ALIGN="LEFT, CENTER or RIGHT" and VALIGN="TOP, MIDDLE or BOTTOM" attributes in the<TABLE> , <TH> , <TR> or <TD> tags.
  2. The horizontal default alignment for TD contents is left.
  3. The vertical default is middle.
  4. Use ALIGN and VALIGN to make tables more visually appealing.
Cellspacing Nowrap