• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 142
  • Last Modified:

multiple frames....

I'm trying to put a site together for my small business and can't seem to remember or find the code for 3 individual frames. I want "top.htm" to run across the top and then a "menu.htm" on the left side and in the remaining part the "main.htm" I keep playin around with the col and row settings, but either one part of it all leaves or it all goes together...anyone able to help...
0
zm_dawg
Asked:
zm_dawg
  • 2
1 Solution
 
gator4lifeCommented:
Here ya go:

<html>
     <head>
          <title>Example Frameset</title>
     </head>
     <frameset rows="20%,*">
          <frame src="top.htm">
          <frameset cols="20%,*">
               <frame src="menu.htm">
               <frame src="main.htm">
          </frameset>
     </frameset>
</html>

The first <frameset> sets the "top.htm" page to take up 20% of the height of the window and the second <frameset> to take up the remaining 80%.  The second <frameset> sets the "menu.htm" page to take up 20% of the width of the window and "main.htm" to take up the remaining 80%.  You can change these values to suit your specific needs.

gator4life
(chomp, chomp)
0
 
russellshomeCommented:
The best way I find to jog my memory is to use an application such as FrontPage to create the frameset. Set it up the way you want then copy the HTML.
0
 
russellshomeCommented:
0
 
alphaeternityCommented:
gator's is right if you want the top to take the whole width and the menu and main to share the rest.  if you want the menu to be the full height and the top and main to share the right side, it would be

<html>
<head>
   <title> blah </title>
</head>
<frameset cols="20%,80%">
   <frame src="menu.html">
   <frameset rows="10%,90%">
      <frame src="top.html">
      <frame src="main.html">
   </frameset>
</frameset>
</html>

as gator did, you dont have to put in the 80% and 90%, you can replace it with * <-asterix(s) which means "the rest", as in the percentage that's left (100% - 20%)
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now