Frames Lesson
This page was made by a buddy of mine, and I haven't actually asked him if I could put it up here...I think...it's been years, so I can't say either way.
<frameset></frameset> <frameset
rows=x,x2,x3 cols=y,y2,y3>
</frameset> Note: x and y = %,
#OfPixels, * (Whatever's left of the page)
You DO NOT USE the
<body></body> tags, just frameset.
<frameset>
<frame
src="targeturl">
</frameset>
Examples?
<html>
<head>
<title> </title>
</head>
<frameset
cols="25%, 75%">
<frame src="document1.html">
<frame src="artsyfartsy.html">
</frameset>
</html>
"document1.html"
will take up the first column frame, the frame that takes up 25% of your screen,
and "artsyfartsy.html" will take up the other 75%. Now, instead of writing
"75%", you could have put in an asterisk (*) and it would have used up the
remaining page space. You can have as many frames as you want, just don't get too complicated. The fun thing about frames is that you can do things like this:
<html>
<head>
<title>Blacksworth.Net {Frames Lesson}</title>
</head>
<frameset cols="25%, 75%">
<frameset rows="50%, *"> (this starts
nesting framesets, which means you can make rows within columns, or columns
within rows, however you want to do it, ad
nauseum)
<frame
src="documentrows1.html">
<frame
src="rows2.html">
</frameset>
<frame
src="document1.html">
</frameset>
</html>
The nested frameset takes up the first col space, which leaves only the second. Of course, you can reverse this order if you wish.
HTML Home
Home