You are here:  NetStrider » Tutorials » HTMLRef » Tables » COLGROUP «
<COLGROUP> Command

Command Syntax:

<COLGROUP command parameters>

The <COLGROUP> command defines the characteristics of a group of columns in a <TABLE> in the Internet Explorer browser.

See also:  <COL>, <TABLE>.

Command Parameters: 
align="left | right | center"

Where:

  • left -
    horizontally aligns elements in all table data cells in the defined column to the left
  • right -
    horizontally aligns elements in all table data cells in the defined column to the right
  • center -
    horizontally aligns elements in all table data cells in the defined column to the center
valign="top | bottom | center"

Where:

  • top -
    vertically aligns elements in all table data cells in the defined columns to the top
  • bottom -
    vertically aligns elements in all table data cells in the defined columns to the bottom
  • center (middle) -
    vertically aligns elements in all table data cells in the defined columns to the center
span="integer"

Defines the number of columns that are affected by the formatting within the <COLGROUP> command.

Example: 
<TABLE>
  <COLGROUP align="center" valign="center" span="5">
  . . .
</TABLE>
  • Defines attributes for a group of five columns in the table.

  • Elements in all table data cells in the columns are aligned to the center horizontally and vertically.

See also:  <COL>.

Return to Section A:D


Table of Contents.
Author: Randy D. Ralph.  In place February 20, 1999.  Copyright © 1999 NetStrider.  Presented as a public service.




Hosted by uCoz