Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
Thread: frame problem
12-11-2009, 01:43 PM #1
- Join Date
- Dec 2009
- Thanked 0 Times in 0 Posts
I have a frame problem.
But first here what I am trying to do.
Top page 1st frame = I want my banner on the top frame.
Left of the page No frame = I want my main page to the left of the screen and working as if there where no frame.witch also will include and ( accordion menuto the left)
Right of the page 2nd frame = I want my list of links ( accordion menu) in the right frame.
I need frame because I can’t put 2 different set of menu on each side of the page, and frame seem to be the only option for that.
Now I was able to make frame and each of them work, when they are on different pages.
When I put all my frame on the same page only one will appear can you please tell me what I am doing wrong and how to make right frame attach to my left frame and both working as one page?
Please if you can’t help me or don’t understand what I am trying to do let me know.
Thank for your time.
Here my code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>frameset</title </head> <iframe src="banner.html" width="775,*," height="140,*," align="" frameborder="" marginwidth="" marginheight="" scrolling="yes|no|auto">If you can see this, your browser doesn't understand IFRAME. <a href="file:///C|/Users/marie/Desktop/New Web/banner.html"></a> </iframe> <frameset cols = " *,60 "> <frame src ="main.html" /><a href="file:///C|/Users/marie/Desktop/New Web/main.html> <frame src ="menu.html" /><a href="file:///C|/Users/marie/Desktop/New Web/menu.html> </frameset> </html> <html> </body> </html> <body> </body> </html>
12-11-2009, 02:35 PM #2
- Join Date
- Nov 2007
- Thanked 40 Times in 39 Posts
I doubt you are trying to accomplish something similar.
http://w3schools.com/html/tryit.asp?...html_frame_mixCode:<html> <frameset rows="50%,50%"> <frame src="frame_a.htm"> <frameset cols="25%,75%"> <frame src="frame_b.htm"> <frame src="frame_c.htm"> </frameset> </frameset> </html>
I also suggest you check the following link:
cannotuse the <body></body> tags together with the <frameset></frameset> tags! However, if you add a <noframes> tag containing some text for browsers that do not support frames, you will have to enclose the text in <body></body> tags! See how it is done in the first example below.
12-11-2009, 03:33 PM #3
- Join Date
- Dec 2006
- Thanked 1,827 Times in 1,811 Posts
It seems you should be using a Frameset DocType instead of your Trasitional one.Then you could run your code through the validator to fix several errors. See the links about validation in my sig below.Code:<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
Also have a look at this site as well as the ones tagnu has linked you to.