XHTML » frameset » rows

The rows attribute is used to set the number of row frames in a frameset element. This is done indirectly since you never provide the actual number of rows. Rather, this attribute is a quote-enclosed, comma-separated list of values that specify the height assigned to each frame. The number of values in the list determines the number of frames. For example, if you have three values, then you are expected to have three frames. These values can be:

  • a percentage of the window height
  • an integer number of pixels
  • either an integer of the above methods plus the asterisk *

Examples

Code:
<frameset rows="40%, 60%" >
<frameset rows="20%, 50%, 30%" >
<frameset rows="20%, 20%, 20%, 20%, 20%" >
<frameset rows="100, 100" >
<frameset rows="50, 75, 150" >
<frameset rows="150, * ">
<frameset rows="*, 50%, *, * ">
<frameset rows="3*, *" >
<frameset rows="20%, *, 2*" >
for two row frames
for three row frames
for five row frames
for two row frames
for three row frames
for two row frames
for four row frames
for two row frames
for three row frames
Explanation:

The asterisk is used to proportionally assign leftover spacing. A 3* value has three times the proportion than a single *.

If you use the rows attribute, you cannot use the cols attribute.

Language(s): HTML