HTML - статьи

COL


Description

The COL element specifies column based defaults for table properties.

Minimum Attributes

<COL>

All Possible Attributes

<COL

LANG="..."

DIR=ltr|rtl

ID="..."

CLASS="..."

SPAN=nn

WIDTH="..."

ALIGN=left|center|right|justify|char



CHAR="."

CHAROFF="..."

VALIGN=top|middle|bottom|baseline>

Elements Allowed Within...

COL has no end element, therefore it has no content.

Allowed In Content Of...

Variations

The COL element is part of the new proposed standard

tables structure. It is not widely implemented in existing browsers.

The order of placement of a series of COL elements within the TABLE

content (or within a COLGROUP) is significant, and describes the columns

in the TABLE DIR presentation order, first to last.

SPAN is a positive integer that specifies how many columns this element

applies to, defaulting to one. SPAN=0 implies all columns from the

current column up to and including the last column.

WIDTH is a decimal number which specifies the width

of each column in the span.

The default units is pixels, but may be specified by a suffix on the number.

The standard defined units suffixes include:

pt=points,

pi=picas,

in=inches,

cm=centimeters,

mm=millimeters,

em=em units,

px=screen pixels.

In addition, the special suffix of an asterisk may be used

to specify a number to be used as a multiplier of a "standard" column width.

This is used to specify the widths of columns proportionately relative

to each other.

If a number does not accompany the asterisk it defaults to one.

Specifying WIDTH="0*" forces the column to its minimum width.

ALIGN and VALIGN define the alignment of text within a table cell.

If ALIGN=char, CHAR specifies the alignment character which defaults

to the decimal point for the current language. CHAROFF is a decimal

number that specifies the offset for the alignment character from the

beginning of the table cell in the DIR direction. Units may be specified

using the standard defined units suffixes plus the special suffix of the

percent sign indicating the percentage of offset within the cell from the

beginning of the cell.



Содержание раздела