HTML and CSS Reference
In-Depth Information
accept a quote-enclosed, comma-separated list of values that specifies
either the absolute (pixels) or relative (percentage or remaining space)
width (for columns) or height (for rows) for the frames. The number of
attribute values determines how many rows or columns of frames the
browser displays in the document window.
As with tables, the browser matches the size you give a frameset as
closely as possible. The browser does not, however, extend the bound-
aries of the main document window to accommodate framesets that
would otherwise exceed those boundaries or fill the window with empty
space if the specified frames don't fill the window. Rather, browsers al-
locate space to a particular frame relative to all other frames in the row
and column and resolutely fill the entire document window. (Did you no-
tice that the main frame window does not have scroll bars?)
For example:
<frameset rows="150,300,150">
creates three rows of frames, each extending across the entire docu-
ment window. The first and last frames are set to 150 pixels tall, and
the second is set to 300 pixels. In reality, unless the browser window
is exactly 600 pixels tall, the browser automatically and proportionately
stretches or compresses the first and last frames so that each occupies
one-quarter of the window space. The center row occupies the remain-
ing half of the window space.
Frame row- and column-size values expressed as percentages of the
window dimensions are more sensible. For instance, the following ex-
ample is effectively identical to the preceding one:
<frameset rows="25%,50%,25%">
Of course, if the percentages don't add up to 100 percent, the browser
automatically and proportionally resizes each row to make up the differ-
ence.
 
Search WWH ::




Custom Search