Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

HTML DOM Frameset cols property

Frameset cols property

Frameset Object Reference Frameset Object


Definition and Usage

The cols property sets or returns the number and size of columns in a frameset.

A comma-separated list of pixels or percentages defines the number and width of columns.

Syntax

framesetObject.cols=

values

The cols property can be one or more of the following values:

Value Description
pixels Specifies the size of the column in pixels (e.g. "100px" or "100")
% Specifies the size of the column as a percentage (e.g. "50%")
* Remaining available column space

Browser support

Internet Explorer Firefox Opera Google Chrome Safari

All major browsers support the cols property.


Example

In our example, we first create an HTML document containing a frameset with two columns. Each column is set to 50% of the browser window:

 

 

Source code for "frame_cols.htm":

Example

Try it »


Frameset Object Reference Frameset Object