Frames problem

levi2251

New Member
Messages
4
Reaction score
0
Points
0
okay.... So I have never been good at frames, and have started trying to use them... I could figure out how to use them in a single direction, but when it comes to multiple directions, it seems I only see the first frame. Here is the code I am using.

Code:
<frameset cols="100%" rows="20%">
<frame src="srcname.htm" />
</frameset>
<frameset cols="25%,75%" rows="100%,100%">
<frame src="srcname2.htm" />
<frame src="srcname3.htm" />
</frameset>

I have also tried putting this all in one frameset, and putting the cols="" and rows="" into the <frame> tag but nothing works... Only see the first frame still... Any help would be appreciated.
 

cybrax

Community Advocate
Community Support
Messages
764
Reaction score
27
Points
0
I've never been any good either with frames and as a website construction method the use of frames has fallen seriously out of favour and been largely replaced by CSS (cascading style sheets). Assuming that srcname2.htm and so on are part of your website there are other methods that can be used to include the data from one file inside another.
 

LostHorizon

Member
Messages
43
Reaction score
2
Points
8
Hi "levi2251",

If I'm NOT mistaken, if what you're trying to do is something like this:

+-------------------------------------------------+
| srcname.htm
+-------------------------------------------------+
| srcname2.htm | srcname3.htm
+-------------------------------------------------+

then try the following codes:

Code:
<FRAMESET rows = "20%,80%">
   <FRAME src = "srcname.htm">

   <FRAMESET cols = "25%,75%">
      <FRAME src = "srcname2.htm">
      <FRAME src = "srcname3.htm">
   </FRAMESET>
</FRAMESET>


The correct usage for nested frame sets is as follow:

Code:
<FRAMESET ...
   <FRAMESET ...
   </FRAMESET>
</FRAMESET>


P.S.: Be sure to use the Frameset Document Type Definition (DTD) for your HTML document so the browser would render/display the page correctly.

Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
<HTML>
  :
  :
</HTML>


---------- Post added at 05:36 AM ---------- Previous post was at 05:08 AM ----------

Hi "levi2251",

By the way,

1. if you don't like to have the border around the frame(s), you can turn if OFF with the "frameborder" attribute,

2. also, if you don't want the viewer(s)/visitor(s) to resize your nested frame(s), you can disallow it using the "noresize" attribute.


P.S.: You can find all other <FRAME> attributes at:

http://www.w3.org/TR/html4/present/frames.html#h-16.2.2

Hope you'll find these helpful,

Best regards.
 
Top