Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3

Thread: frame problem

  1. #1
    New Coder
    Join Date
    Dec 2009
    Thanked 0 Times in 0 Posts

    frame problem

    Hi, everyone.

    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">
    <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>

  • #2
    Regular Coder
    Join Date
    Nov 2007
    Thanked 40 Times in 39 Posts
    I doubt you are trying to accomplish something similar.
    <frameset rows="50%,50%">
    <frame src="frame_a.htm">
    <frameset cols="25%,75%">
    <frame src="frame_b.htm">
    <frame src="frame_c.htm">

    I also suggest you check the following link:
    Important: You cannot use 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.
    Last edited by tagnu; 12-11-2009 at 03:43 PM. Reason: Added code from the link.
    Blog Charity:Water
    WhatisWrongWith.me/tagnu - Send me anonymous feedback.

  • #3
    Master Coder Excavator's Avatar
    Join Date
    Dec 2006
    Thanked 1,847 Times in 1,831 Posts
    Hello prop,
    It seems you should be using a Frameset DocType instead of your Trasitional one.
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"
    Then you could run your code through the validator to fix several errors. See the links about validation in my sig below.
    Also have a look at this site as well as the ones tagnu has linked you to.
    Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
    Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad


    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts