Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 7 of 7
  1. #1
    New to the CF scene
    Join Date
    Aug 2012
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Frames looking different in different browsers

    Hi,
    my web page contains frames using jsp.but frame layouts are displaying different in different browsers,OS, and screen resolutions.can anybody help me out from this pls!!!!!

    i've attached my code here for your kind reference:
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <title>Card User Page</title>
    </head>


    <frameset rows="21%,67%,11%" cols="*" frameborder="no" border="0" framespacing="0" >
    <frame src="page3.html" frameborder="0" scrolling="no">


    <frameset rows="*" cols="17%,20%,55%,17%" framespacing="0" frameborder="no" bordercolor="#D1D3D4">
    <frame src="page5.html" scrolling="no" style="background-color: #D1D3D4" />
    <frame src="UserNavigate.jsp" bordercolor="#D1D3D4" />
    <frame name ="content" src="UserHome.jsp" scrolling="auto" marginwidth="50" bordercolor="#D1D3D4" >
    <frame src="page6.html" scrolling="no" style="background-color: #D1D3D4"/>
    </frameset>

    <frame src="page4.html" scrolling="no">
    </frameset><noframes></noframes>


    <body>

    </body>
    </html>

    Thanks in advance...

  • #2
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    18,314
    Thanks
    203
    Thanked 2,565 Times in 2,543 Posts
    Quote Originally Posted by MG2W View Post
    it code error. CODE don't work in firefox. Can you help me.
    Have you tried using Firebug? That will expose the problem.

    All the code given in this post has been tested and is intended to address the question asked.
    Unless stated otherwise it is not just a demonstration.

  • #3
    New to the CF scene
    Join Date
    Aug 2012
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
     <html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>Card User Page  (@_@)))))></title></head>
     <frameset rows="21%,67%,11%" frameborder="no" border="0" framespacing="0" >
     <frame src="page3.html" frameborder="0" scrolling="no" />
    <frameset cols="17%,20%,55%,17%" frameborder="no" framespacing="0" bordercolor="#D1D3D4" >
    <frame src="page5.html" scrolling="no" style="background-color: #D1D3D4" />
    <frame src="UserNavigate.jsp" bordercolor="#D1D3D4" />
    <frame name ="content" src="UserHome.jsp" scrolling="auto" marginwidth="50" bordercolor="#D1D3D4" />
    <frame src="page6.html" scrolling="no" style="background-color: #D1D3D4"/>
    </frameset>
     <frame src="page4.html" scrolling="no"/>
     </frameset>
     <noframes></noframes>
     <body>
     </body>
     </html>

  • #4
    New to the CF scene
    Join Date
    Aug 2012
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I DONOT WORK. code DONOT WORK in Firefox.

  • #5
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    18,314
    Thanks
    203
    Thanked 2,565 Times in 2,543 Posts
    You are starting to become nuisance. Do not SHOUT please.

    1) Use your debugger tool (Firebug)
    2) Get rid of this ancient code. Framesets are deprecated.

    All the code given in this post has been tested and is intended to address the question asked.
    Unless stated otherwise it is not just a demonstration.

  • #6
    New to the CF scene
    Join Date
    Aug 2012
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by Philip M View Post
    You are starting to become nuisance. Do not SHOUT please.

    1) Use your debugger tool (Firebug)
    2) Get rid of this ancient code. Framesets are deprecated.

    Hi Philip,

    I have tested with firebug.this code works in firefox.but shows different frame layout in different chrome and IE .also shows different in linux and windows..and different in different screen resolution...can u suggest an alternate for frames.

    My requirement is this:

    A webpage should be divided into several parts.
    1: header part for logos
    2: middle part containing two parts ,left part that contains button options,which should be static.the second part should be dynamic in which if we click on the options of left part,the corresponding contents should be displayed in second part.
    3:footer art

    Pls refer http://www.snapdeal.com/products


    Hope u understand.....

    pls help me out in this....

    thanks...

    Mary george

  • #7
    Senior Coder
    Join Date
    Apr 2011
    Location
    London, England
    Posts
    2,120
    Thanks
    15
    Thanked 354 Times in 353 Posts
    You should use the Frameset DOCTYPE if you really want to use frames:

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

    Validate

    But you would be much better off re-writing it without frames.
    "I'm here to save your life. But if I'm going to do that, I'll need total uninanonynymity." Me Myself & Irene.
    Validate your HTML and CSS


  •  

    Posting Permissions

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