Absolute Image Positioning in FF3.5 vs IE8

Discussion in 'HTML' started by Eris of Stronghold [STRM], Oct 1, 2009.

  1. at http://www.strm.us/cpg14x/index.php

    I have the following code (partial excerpt)

    <div id="container" style="position: relative">
    <span style="position: relative; left: 0; top: 0; z-index: 1">
    <iFRAME name="RandomPicture" src="http://www.strm.us/header.php"
    width="899" height="122"

    right:0px; bottom:0px; marginwidth=0 marginheight=0 frameborder=0
    scrolling=no></iFRAME>
    </span>
    <span style="position: absolute; left: 10px; top: 35px; z-index: 2;">
    <h1>{GAL_NAME}</h1>
    <h3>{GAL_DESCRIPTION}</h3>
    </span>
    </div>

    Works fine in FF, but IE does not respect the relative container.
    I am sure it is something simple ** Banging head on keyboard **

    Any suggection to make this cross browser friendly?

    Thank You,
    Mike
     
    Eris of Stronghold [STRM], Oct 1, 2009
    #1
    1. Advertising

  2. Eris of Stronghold [STRM]

    Mike Guest

    On Sep 30, 9:53 pm, "Eris of Stronghold [STRM]" <>
    wrote:
    > athttp://www.strm.us/cpg14x/index.php
    >
    > I have the following code (partial excerpt)
    >
    > <div id="container" style="position: relative">
    > <span style="position: relative; left: 0; top: 0; z-index: 1">
    > <iFRAME name="RandomPicture" src="http://www.strm.us/header.php"
    > width="899" height="122"
    >
    > right:0px; bottom:0px; marginwidth=0 marginheight=0 frameborder=0
    > scrolling=no></iFRAME>
    > </span>
    > <span style="position: absolute; left: 10px; top: 35px; z-index: 2;">
    > <h1>{GAL_NAME}</h1>
    > <h3>{GAL_DESCRIPTION}</h3>
    > </span>
    > </div>
    >
    > Works fine in FF, but IE does not respect the relative container.
    > I am sure it is something simple ** Banging head on keyboard **
    >
    > Any suggection to make this cross browser friendly?
    >
    > Thank You,
    > Mike


    Never mind. . .
    found a rogue border:0px; on the parent element that did not belong :D

    Thanks,

    Mike
     
    Mike, Oct 1, 2009
    #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. Travis Newbury

    FF3 anyone?

    Travis Newbury, Jun 18, 2008, in forum: HTML
    Replies:
    65
    Views:
    1,919
    Chris F.A. Johnson
    Jun 23, 2008
  2. dorayme

    Re: FF3 - Better or Not?

    dorayme, Jun 22, 2008, in forum: HTML
    Replies:
    1
    Views:
    309
    dorayme
    Jun 22, 2008
  3. Richard Maher
    Replies:
    9
    Views:
    720
    Richard Maher
    Mar 8, 2010
  4. DL
    Replies:
    2
    Views:
    120
  5. cecile

    ie8!=ie8

    cecile, May 24, 2010, in forum: Javascript
    Replies:
    2
    Views:
    191
    David Mark
    May 24, 2010
Loading...

Share This Page