<multicol> (Multiple Column Text)
This Netscape-specific element renders the enclosed content in multiple columns. This element should not be used; a table is a more standard way to render multiple columns of text across browsers.
Proprietary Syntax (Defined by Netscape)
<multicol
class="class name(s)"</multicol>
cols="number of columns"
gutter="pixels"
id="unique alphanumeric identifier"
style="style information"
width="pixels">
Element Specific Attributes
- cols
- This attribute indicates the number of columns in which to display the text. The browser attempts to fill the columns evenly
- gutter
- This attribute indicates the width in pixels between the columns. The default value for this attribute is 10 pixels.
- width
- This attribute indicates the column width for all columns. The width of each column is set in pixels and is equivalent for all columns in the group. If the attribute is not specified, the width of columns will be determined by taking the available window size, subtracting the number of pixels for the gutter between the columns (as specified by the gutter attribute), and evenly dividing the result by the number of columns in the group (as set by the cols attribute).
Example
<multicol cols="3" gutter="20">
Put a long piece of text here....
</multicol>
Compatibility
No standards
Netscape 3, 4, 4.5 4.8
Notes
Page developers are strongly encouraged not to use this element. Netscape dropped this element for browser versions 6.0 and higher. Its inclusion in this book is for support of existing documents only.