Easy Tutorial
❮ Dom Obj Frameset Prop Option Disabled ❯

Frameset cols Attribute


Definition and Usage

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

It is defined by a comma-separated list of pixels or percentages that specify the number and width of columns.

Syntax

The cols attribute 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%")
* The remaining available column space

Browser Support

All major browsers support the cols attribute.


Example

In our example, we will create an HTML document that contains a frameset with two columns, each set to 50% of the browser window:

The source code for "frame_cols.htm" is as follows:

Example


❮ Dom Obj Frameset Prop Option Disabled ❯