IFrames w/ IE

Discussion in 'HTML' started by Aeden Jameson, Jul 16, 2004.

  1. For some reason there is extraneous space at the bottom of the browser
    when I try to view an svg file in an <iframe>. The problem occurs
    when I specify relative or absolute positioning with a height over,
    say, 50%. This seems to be a problem only in IE, works fine in
    Mozilla. You guys have any ideas why this happens and what a cross-browser
    fix would be? Here is the html file,

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
    <head>
    <title>SVG in IFrame</title>
    <style type="text/css">
    html, body {
    margin:0px;
    padding:0px;
    height:100%;
    }

    iframe#page {
    position:relative;
    height:60%;
    border:1px solid black;
    background-color:white;
    }
    </style>
    </head>

    <body>
    <iframe id="page" src="index.svg" frameborder="0"
    scrolling="no"/>
    </body>
    </html>

    And the svg file is,

    <?xml version="1.0" standalone="no"?>
    <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20000303 Stylable//EN"
    "http://www.w3.org/TR/2000/03/WD-SVG-20000303/DTD/svg-20000303-stylable.dtd"
    >


    <svg xml:space="preserve">
    <text style="fill:red;" y="15">This is SVG.</text>
    </svg>

    Cheers,
    Aeden
     
    Aeden Jameson, Jul 16, 2004
    #1
    1. Advertising

  2. Aeden Jameson

    Mitja Guest

    Aeden Jameson <>
    (news:%QFJc.39492$) wrote:
    > For some reason there is extraneous space at the bottom
    > of the browser when I try to view an svg file in an
    > <iframe>. The problem occurs
    > when I specify relative or absolute positioning with a
    > height over,
    > say, 50%. This seems to be a problem only in IE, works
    > fine in
    > Mozilla. You guys have any ideas why this happens and
    > what a cross-browser fix would be?


    Not the faintest of ideas. You can try doing it with an <object> instead of
    <iframe>, though I don't know if it will help.

    > Here is the html file,
    >
    > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    >
    > <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
    > <head>
    > <title>SVG in IFrame</title>
    > <style type="text/css">
    > html, body {
    > margin:0px;
    > padding:0px;
    > height:100%;
    > }
    >
    > iframe#page {
    > position:relative;
    > height:60%;
    > border:1px solid black;
    > background-color:white;
    > }
    > </style>
    > </head>
    >
    > <body>
    > <iframe id="page" src="index.svg" frameborder="0"
    > scrolling="no"/>
    > </body>
    > </html>
    >
    > And the svg file is,
    >
    > <?xml version="1.0" standalone="no"?>
    > <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20000303
    > Stylable//EN"
    >

    "http://www.w3.org/TR/2000/03/WD-SVG-20000303/DTD/svg-20000303-stylable.dtd"
    >>

    >
    > <svg xml:space="preserve">
    > <text style="fill:red;" y="15">This is SVG.</text>
    > </svg>
    >
    > Cheers,
    > Aeden
     
    Mitja, Jul 16, 2004
    #2
    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. Marina

    OT: SSL issues with IFRAMES

    Marina, Aug 11, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    404
    Marina
    Aug 11, 2003
  2. Ashish

    Problem with iframes

    Ashish, Feb 27, 2004, in forum: ASP .Net
    Replies:
    2
    Views:
    4,673
    Ashish
    Feb 27, 2004
  3. Ashish

    problem with iframes

    Ashish, Feb 27, 2004, in forum: ASP .Net
    Replies:
    8
    Views:
    524
    Marina
    Feb 27, 2004
  4. JezB

    styles & iFrames

    JezB, Jun 28, 2004, in forum: ASP .Net
    Replies:
    3
    Views:
    357
    Eliyahu Goldin
    Jun 28, 2004
  5. =?Utf-8?B?VmFuIFN0ZWVuYmVyZ2VuIEphbg==?=

    Iframes and session variables--HELP requested

    =?Utf-8?B?VmFuIFN0ZWVuYmVyZ2VuIEphbg==?=, Jul 1, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    835
    =?Utf-8?B?VmFuIFN0ZWVuYmVyZ2VuIEphbg==?=
    Jul 1, 2004
Loading...

Share This Page