Home > Abakada: Back to Basics > Language References > HTML Element Attributes > ROWS Attribute
Sets or retrieves a comma-delimited string of frame heights.
Inline |
<FRAMESET ROWS = "iHeight [ ,iHeight... ] " |
Script |
object.rows = "iHeight [ ,iHeight... ] " ] |
iHeight |
Integer specifying the frame height in pixels. |
iHeight% |
Integer specifying the frame height as a percentage of total available width. |
iHeight* |
Integer specifying the frame height as a relative value. After allocating pixel or percentage values, the remaining space is divided among all relative-sized frames. |
The property is read/write with no default value.
The number of comma-separated items is equal to the number of frames contained within the FRAMESET, while the value of each item determines the frame height.
The following example defines a two-row frame, with the first occupying 40 percent of the available height and the second occupying the remaining 60 percent.
<frameset ROWS="40%, 60%">
The next example defines a four-row frame. The first is 50 pixels high and the fourth is 80 pixels high. The second will occupy two-thirds of the remaining height, while the third will occupy the final one-third of the remaining height.
<frameset ROWS="50, 2*, *, 80">
FRAMESET
cols, Authoring Your Pages: Frames and Framesets