COLS Attribute | cols Property

DHTML, HTML, & CSS

COLS Attribute | cols Property


Sets or retrieves the frame widths of the object.

Syntax

HTML<FRAMESET COLS = sWidth ... >
Scriptingframeset.cols [ = sWidth ... ]

Possible Values

sWidth String that specifies one or more of the following comma-delimited values:
widthInteger that specifies the frame width, in pixels.
percentageInteger, followed by a %. The value is a percentage of total available width.
width*Integer that specifies the frame width as a relative value. After allocating pixel or percentage values, the remaining space is divided among all relative-sized frames.

The property is read/write with no default value.

Expressions can be used in place of the preceding value(s), as of Microsoft® Internet Explorer 5. For more information, see dynamic propertiesInternet Link.

Remarks

The number of comma-separated items is equal to the number of frames contained within the FRAMESET, while the value of each item determines the frame width.

Example

This example defines a two-column frame, with the first occupying 40 percent of the available width and the second occupying the remaining 60 percent.

Sample Code

<FRAMESET COLS="40%, 60%">

This example defines a four-column frame. The first is 50 pixels wide, and the fourth is 80 pixels wide. The second occupies two-thirds of the remaining width, while the third occupies the final third of the remaining width.

<FRAMESET COLS="50, 2*, *, 80">

Applies To

[ Object Name ]
PlatformVersion
Win16:
Win32:
Mac:
Unix:
WinCE:
Version data is listed when the mouse hovers over a link, or the link has focus.
FRAMESET

See Also

rows


Back to topBack to top

Did you find this topic useful? Suggestions for other topics? write us!Internet Link

© 1999 microsoft corporation. all rights reserved. terms of useInternet Link.