NS

<MULTICOL>...</MULTICOL>

This description is taken from the Netscape description of the tag.

This tag is a container and all the HTML between the starting and ending tag will be displayed in a multicolumn format. The tag can be nested.

The code that attempts to make even-length columns is a page-breaking algorithm. This attempts to make column breaks look correct in conjunction with left- and right-aligned images. However, it is possible to create a column in which the page-breaking code cannot find a location to break. In this case, you may end up with one long column.

The tag recognizes current font status. So if you begin a bold section before the multicolumn, the text in the columns will start bold, and if you close the bold in the middle of the multicolumn, this nonbold status will continue once you leave the multicolumn.

COLS
NS
This attribute is mandatory and controls how many columns the display will be split into. Layout will attempt to flow elements evenly across the columns to make each column about the same height. Unless the WIDTH attribute is specified, column width is adjusted to fill the available view.

Column sizes are not adjusted for optimal fit as table cells are. If you specify very narrow columns and put a very wide unbreakable element in the column, it will overlap into neighboring columns.


GUTTER
NS
This controls the amount of space between columns in pixels. It defaults to a value of 10.

WIDTH
NS
This attribute controls the width of an individual column. All columns are always the same width, so the overall width of a multicolumn layout can be calculated with :
(cols * width) + ([cols - 1] * gutter).

 
Source:
<MULTICOL COLS=2 GUTTER=15>
<B>Nested Multicolumns</B> - This is an example of text in a nested
multicolumn. First we need some text to fill the columns. As this
is just an example any text will do so : bla bla bla bla bla bla bla
bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla.
<MULTICOL COLS=3 GUTTER=8 WIDTH=100%> <FONT COLOR=#008080>
Here, we've entered another <TT>MULTICOL</TT> tag into the HTML to
produce with a narrow gutter (8 pixels). It is possible to nest
<TT>MULTICOL</TT> tags infinitely.</font></MULTICOL>
Some more text, bla bla bla bla bla bla bla bla bla bla bla bla bla
bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla
bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla
bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla
bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla
bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla.
</MULTICOL>
 
Result: Nested Multicolumns - This is an example of text in a nested multicolumn. First we need some text to fill the columns. As this is just an example any text will do so : bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla. Here, we've entered another MULTICOL tag into the HTML to produce with a narrow gutter (8 pixels). It is possible to nest MULTICOL tags infinitely. Some more text, bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla.


Statistics Copyright © 1996, 1997 Rob Schlüter
Last updated 1997/05/01
Email: schluter@knoware.nl