iframe in ie & ff & Chrome & Opera

Discussion in 'HTML' started by Øyvind Granberg, Dec 5, 2008.

  1. Hi...

    I have this site, based on iframes.
    http://www.tresfjording.com/sitemal/

    The page shos fine in IE.

    But in Chrome, Firefox and Opera, all latest upgrades and updates, the
    frames do not come seamless together...
    The renderering on the screen is the same in these browser.

    It's a little frustrating when a straight forward code is working fine in
    IE, but not in others.
    Here is the code of the index.htm

    <!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>Granberg Online - index</title>
    <style type="text/css">
    <!--
    body {
    background-color: #666666;
    }
    -->
    </style>
    </head>
    <body>
    <div align="center">
    <table border="0" cellpadding="0" cellspacing="0">
    <tr>
    <td><iframe src="top.htm" width="750" height="150" frameborder="0"
    scrolling="No" > </iframe></td>
    </tr>
    <tr>
    <td><iframe src="menu.htm" name="leftframe" width="150" height="350"
    scrolling="No" frameborder="0" id="leftframe"> </iframe>
    <iframe src="hoved.htm" name="mainframe" width="450" height="350"
    scrolling="Auto" frameborder="0" id="mainframe"></iframe>
    <iframe src="right.htm" name="rightframe" width="150" height="350"
    scrolling="No" frameborder="0" id="rightframe"></iframe></td>
    </tr>
    <tr>
    <td><iframe src="bunn.htm" name="botnframe" width="750"
    marginwidth="20px" height="20" scrolling="No" frameborder="0"
    id="botnframe"></iframe></td>
    </tr>
    </table>
    </div>
    </body>
    </html>


    I can't see what's wrong here?
    Can anyone help me?

    --

    Vennlig hilsen
    Øyvind Granberg


    www.tresfjording.com
     
    Øyvind Granberg, Dec 5, 2008
    #1
    1. Advertising

  2. Øyvind Granberg

    dorayme Guest

    In article <4938747c$>,
    Øyvind Granberg <> wrote:

    > Hi...
    >
    > I have this site, based on iframes.
    > http://www.tresfjording.com/sitemal/
    >
    > The page shos fine in IE.
    >
    > But in Chrome, Firefox and Opera, all latest upgrades and updates, the
    > frames do not come seamless together...
    > The renderering on the screen is the same in these browser.
    >
    > It's a little frustrating when a straight forward code is working fine in
    > IE, but not in others.
    > Here is the code of the index.htm
    >
    > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"

    ....
    > </html>
    >
    >
    > I can't see what's wrong here?
    > Can anyone help me?


    For one thing, the value of attribute ³marginwidth² for element
    ³<iframe>² must be a number.

    --
    dorayme
     
    dorayme, Dec 5, 2008
    #2
    1. Advertising

  3. I took all the "marginwith" away.
    I removed all the "frameborer="0"

    Still no fix!

    the url is now http://www.tresfjording.com/

    --

    Vennlig hilsen
    Øyvind Granberg


    www.tresfjording.com

    >
    > For one thing, the value of attribute ³marginwidth² for element
    > ³<iframe>² must be a number.
    >
    > --
    > dorayme
     
    Øyvind Granberg, Dec 6, 2008
    #3
  4. Øyvind Granberg

    dorayme Guest

    In article <>,
    Øyvind Granberg <> wrote:

    > I took all the "marginwith" away.
    > I removed all the "frameborer="0"
    >
    > Still no fix!
    >
    > the url is now http://www.tresfjording.com/
    >
    > --
    >
    > Vennlig hilsen
    > Øyvind Granberg
    >
    >
    > www.tresfjording.com
    >
    > >
    > > For one thing, the value of attribute ³marginwidth² for element
    > > ³<iframe>² must be a number.
    > >


    Best not to top post.

    Next thing to do is validate your frames. There are 21 errors and 21
    warnings errors for the simple left frame alone!

    Use

    <http://validator.w3.org/>

    --
    dorayme
     
    dorayme, Dec 6, 2008
    #4
  5. I've used the validator and it came out blank...

    But it's fixed now...

    First of all I had to use frameborder=0 in all iframes
    Secondly I had to rearrange my table to one cell for each iframe

    now it works fine

    :)

    --

    Vennlig hilsen
    Øyvind Granberg


    www.tresfjording.com

    "dorayme" <> skrev i nyhetsmeldingen:
    ...
    > In article <>,
    > Øyvind Granberg <> wrote:
    >


    >
    > Use
    >
    > <http://validator.w3.org/>
    >
    > --
    > dorayme
     
    Øyvind Granberg, Dec 6, 2008
    #5
  6. it now works fine in all the four big ones...
    IE - FF - Opera and Chrome

    --

    Vennlig hilsen
    Øyvind Granberg


    www.tresfjording.com
     
    Øyvind Granberg, Dec 6, 2008
    #6
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Bob
    Replies:
    24
    Views:
    1,549
  2. Daedalous
    Replies:
    3
    Views:
    725
    Daedalous
    Jan 16, 2004
  3. Ciaran
    Replies:
    10
    Views:
    269
    Ciaran
    Nov 25, 2009
  4. albert kao
    Replies:
    4
    Views:
    180
  5. 123Jim
    Replies:
    6
    Views:
    188
    123Jim
    May 8, 2011
Loading...

Share This Page