Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
all
alt
ch
dir
id
min
rel
top
url
URL
urn
Expand Minimize

cols attribute | cols property

Sets or retrieves the frame widths of the object.

This property is not supported for Windows Store apps using JavaScript.

Syntax

HTML<element cols="size" ... >
JavaScript

size = object.cols

 

Property values

Type: Integer

width

Integer that specifies the frame width, in pixels.

percentage

Integer, followed by a percent sign (%). 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.

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.

Examples

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.


<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">

See also

frameSet
rows

 

 

Show:
© 2015 Microsoft