Table Column Group

End Tag: Optional
Support Key: 2 | 3 | 3.2 | 4 | IE3A1 | M | N | O
What is it?
Attributes
Tag Example
Parent/Content Model
Tips & Tricks
Browser Peculiarities
= Index DOT Html by Brian Wilson [bloo@blooberry.com] =
Main Index | Element Tree | Element Index | HTML Support History


What is it?
This element acts as a container for a group of columns (which are specified with COL elements), and allows the author to specify default properties for these columns. This element comes before any of the standard row grouping hierarchies (TR, THEAD, TBODY and TFOOT), and only serves to more completely describe organizational characteristics of the row grouping data that follow (no cell data is contained in COLGROUPs.)

If no COLGROUP elements are present, all columns in the table are assumed to be part of a single column group. Each COLGROUP grouping can contain zero or more COL elements.

Common Attributes
%Core%
2 | 3 | 3.2 | 4 | IE4B1 | M | N | O
%Events%
2 | 3 | 3.2 | 4 | IE | M | N | O
%Language%
2 | 3 | 3.2 | 4 | IE4 | M | N | O

Specific Attributes
Align
2 | 3 | 3.2 | 4 | IE4B1 | M | N | O
Required? No
Description:
This controls the horizontal alignment of text within the column group.
Values: Left | Center | Right
Char
2 | 3 | 3.2 | 4 | IE | M | N | O
Required? No
Description:
This attribute specifies a character in the cell content to be used to align the data in each cell of the column group (the first occurrence should be used.) The default value for this attribute is the decimal point character for the current specified language.
Values: A case-sensitive character within the current character set.
Charoff
2 | 3 | 3.2 | 4 | IE | M | N | O
Required? No
Description:
This attribute specifies the spacing offset to the first occurrence of the alignment character (specified by the CHAR attribute) on each line of cells in the current column group. The direction of the offset is determined by the current text direction (set with the DIR attribute or the BDO element.)
Values: Integers indicating pixel offset values.
Span
2 | 3 | 3.2 | 4 | IE3A1 | M | N | O
Required? No
Description:
This attribute specifies a default for how many columns are in the current group. It provides a convenient way of grouping columns without the need to supply COL elements. This attribute should be ignored if the current COLGROUP contains one or more COL tags.
Values: Positive integers [DEFAULT: 1]
VAlign
2 | 3 | 3.2 | 4 | IE4B1 | M | N | O
Required? No
Description:
This attribute specifies the vertical alignment of cell contents relative to the cell boundaries for all cells in the column group.
Values: Top | Middle | Bottom | Baseline
Width
2 | 3 | 3.2 | 4 | IE4B1 | M | N | O
Required? No
Description:
Specifies the overall width of the column grouping.
Values: Specified in pixels or a percentage of the browser window width.
Example
<table BORDER="2" ALIGN="left" CELLPADDING="5" BORDERCOLOR="#ff0000" COLS="4" FRAME="vsides" RULES="cols" WIDTH="75%">
<colgroup>
   <col ALIGN="right">
</colgroup>
<colgroup>
   <col ALIGN="center">
   <col ALIGN="center">
   <col ALIGN="center">
</colgroup>
<caption ALIGN="top">Juggling Capabilities of Waterfront Performers</caption>
<thead>
      <tr> <th>Juggler</th> <th>Pins</th> <th>Bowling Balls</th> <th>Flaming Baseballs</th> </tr>
</thead>
<tbody>
      <tr> <td>Bob</td> <td>5</td> <td>2</td> <td>5</td> </tr>
      <tr> <td>Larry</td> <td>2</td> <td>7!!!</td> <td>NA</td> </tr>
      <tr> <td>Julie the Great</td> <td>1</td> <td>2</td> <td>20<br>(She IS great!)</td> </tr>
</tbody>
</table>
Parent Model
<table>
Content Model
<col>
Tips & Tricks Browser Peculiarities
Boring Copyright Stuff...