rows (HTML attribute)

Spec
Depr. Version
No HTML 4.01
Browser support (more…)
IE5.5+ FF1+ SA1.3+ OP9.2+ CH2+
Full Full Full Full Full

Syntax

rows="Comma-seperated list of row height definitations"

Description

Without a cols or rows attribute, the browser will not know what layout the author intended. If a frameset comprising 3 windows, laid out in row formation is required (as detailed in the the example HTML), the rows attribute is used, along with the values of the respective window heights.

Example

A frameset comprising 3 rows of windows:

<frameset rows="33%,33%,*">
  <frame src="frame1.html"/>
  <frame src="frame2.html"/>
  <frame src="frame3.html"/>
</frameset>

Value

Each frame’s height is set in the parent frameset in the rows attribute in a comma-separated list. Acceptable values are integers (which represents a height in pixels - do not need to specify that it’s pixels, this is assumed), percentages and a "*" character, which represents the remaining space required (whatever that value may equate to). Each of the examples below show valid values for the frameset:

<frameset rows="400,200,*">
window 1 is 400 pixels high, window 2 is 200 pixels high,
window 3 is flexible

<frameset rows="30%,*,10%">
window 1 takes up 30%, window 2 is flexible,
window 3 takes up 10%

<frameset rows="20%,20%,60%">
windows 1 and 2 take 20% of the height each,
window three takes up 60%

Compatibility

Internet Explorer Firefox Safari Opera Chrome
5.5 6.0 7.0 8.0 1.0 1.5 2.0 3.0 3.5 1.3 2.0 3.1 4.0 9.2 9.5 10.0 2.0
Full Full Full Full Full Full Full Full Full Full Full Full Full Full Full Full Full

Every browser listed supports this attribute.

User-contributed notes

There are no comments yet.

Related Products