HTML <frameset> colsAttribute
Example
A three-column frameset:
<frameset cols="25%,*,25%">
<frame src="frame_a.htm.html">
<frame src="frame_b.htm.html">
<frame src="frame_c.htm.html">
</frameset>
<frame src="frame_a.htm.html">
<frame src="frame_b.htm.html">
<frame src="frame_c.htm.html">
</frameset>
Try it Yourself »
Browser Support
![]()
![]()
![]()
![]()
![]()
All major browsers support the cols attribute.
Definition and Usage
HTML5 does not support the <frameset> tag.
The cols attribute specifies the size and number of columns in a <frameset>.
The width of each frame is specified in the cols attribute in a comma-separated list.
Note:Once the number of values in the cols attribute is specified, the number of columns in the <frameset> is defined.
Syntax
<frameset cols="pixels|%|*">
Attribute Values
| Value | Description |
|---|---|
| pixels | Specifies the column size in pixels (for example "100px" or just "100"). |
| % | Specifies the column size as a percentage of the available space (for example "50%"). |
| * | The remaining part of the available space will be assigned to this column. |
HTML <frameset> Tag Other Extensions