You are here: Reference > HTML > attributes > rows (frameset)

rows attribute (frameset)

Browser support:
Sets the heights of the rows within a frameSet element. All frame elements in the same row have the same height as the row.
The rows attribute not only specifies the height of rows, but also specifies the count of rows in the frameSet. The count of the comma-separated items in the value of the rows attribute defines the count of the rows.
The cols attribute is similar to the rows attribute, but it defines the width and the count of the columns in the frameSet.
The order of the frames is left-to-right, and top-to-bottom.
JavaScript page for this attribute: rows. You can find other example(s) there.

Possible values:

String that sets a comma-separated list, that specifies the height of the rows in the current frameSet.
The height can be one of the following values:
height in pixels
Integer with or without a px (pixel) designator.
Integer higher or equal to 0 , with a % designator. The value is a percentage of the height of the frameset.
Integer, followed by a '*' sign. Defines the height 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 height row, the value of '3*' represents a 150px height row.
Default: this attribute has no default value.

Example HTML code 1:

This example illustrates the use of the rows attribute:
<frameset rows="110,*" cols="*" border="10px" bordercolor="red">
    <frame src="topFrame.htm" name="topFrame" scrolling="No"/>
    <frame src="mainFrame.htm" name="mainFrame"/>
Did you find this example helpful? yes no

Supported by tags:

Related pages:

External links:

User Contributed Comments

Post Content

Post Content