cols attribute (frameset)
Sets the widths of the columns within a frameSet element. All frame elements in the same column has the same width as the column.
The cols attribute not only specifies the width of the columns, but also specifies the count of the columns in the frameSet. The count of the comma-separated items in the value of the cols attribute defines the count of the columns.
A comma-separated list that specifies the width of the columns in the current frameSet.
The width can be one of the following values:
|Integer with or without a px (pixel) designator.|
|Integer higher or equal to 0 , with a % designator. The value is a percentage of the width of the frameset.|
|Integer, followed by a '*' sign. Defines the width as a relative value. If only the '*' sign is defined, it is equivalent to the value of '1*'. After the pixel and percentage values are calculated, the rest of the space is divided among the relative values. For example, if there are two relative values: (2*, 3*) and the remaining space is 250px, than the value of '2*' represents a 100px width column, the value of '3*' represents a 150px width column.|
Default: this attribute has no default value.
Example HTML code 1:
This example illustrates the use of the cols attribute:
Did you find this example helpful?
Supported by tags:
User Contributed Comments