HTML Reference Guide


Tag Index| Content List| HTML FAQ

<MULTICOL> ... </MULTICOL> MULTI COLUMN

Description:

MULTICOL specifies that all contained text will be displayed in multi-column format. All columns will have the same width and data should be spread evenly across each of the columns to achieve roughly equal column heights.

Attributes:

cols - This attribute indicates the number of columns the contained data will be split into. The browser should try to evenly distribute the content evenly across each of the columns in order to achieve roughly the same column height.

gutter - This attribute controls the amount of pixel space between columns.

width - This optional attribute is supposed to control the width of an individual column. All columns are always the same width, so the overall width of a multi-column layout should be (as specified by Netscape):

(cols * width) + ((cols - 1) * gutter)
However.
Through direct experimentation, this attribute seems to control the TOTAL width of the column apparatus, not the width of each individual column. The multi-column apparatus will remain left-justified if a width results in an amount less than the overall browser window size. If no WIDTH is specified, the default width is 100% [full screen width]

Example code:

<multicol COLS=3 WIDTH=80% GUTTER=20> This is multi-column layout text that should be distributed evenly across 3 columns</multicol>

Result:

This is multi-column layout text that should be distributed evenly across 3 columns

See Also: