HTML and CSS Reference
In-Depth Information
Figure 10.25
Two vertically positioned frames: Output from Example 10.14.
The next example shows a window partitioned into three horizontal frames.
EXAMPLE
10.15
<html>
<head><title>Frame Me!</title></head>
<!--
This file simply defines the frames; it points to other
HTML files (not shown) that comprise the HTML
content
-->
1
<frameset rows="130,*,*" frameborder="yes"
border="1" framespacing="0">
2
<frame src="topframe.html" >
3
<frame src="main.html" scrolling="no">
<!--main.html is the middle frame -->
<frame src="bottomframe.html" >
4
</frameset>
</html>
EXPLANATION
1
This time the frameset will be divided up into three sections by rows. The first
frame will be a horizontal frame consisting of 130 pixels in a row. Based on the
amount of space taken up by the first frame, the remaining frames will be allocat-
ed whatever space is left in the window. There are three frames that will be placed
horizontally on the page (see Figure 10.26).
130 pixels in rows
topframe.html
main.html
bottomframe.html