I have a question about placing a image

Discussion in 'HTML & Website Design' started by zigzag007, Nov 28, 2009.

  1. #1
    See my site: http://www.forexnestegg.com/


    I have a gray experimental box (future image) aligned next to the google ad
    unit filling that hole. It places perfect in Netscape Navigator 9 (Yes, i'm the
    "1" that still uses it). But in EI 6 it doesn't stay put, also when I change
    screen resolutions.

    This the code I use:

    <div
    style="
    top: 208;
    left: 510;
    position: absolute;
    z-index: 1;
    visibility: show;">
    <img src="http://www.wpimg.com/custom/4109/space03.jpg" width="210" height="280" hspace="0" vspace="0" border="0"
    alt="ForexNestEgg.com="left" /></a>

    </div>

    Is there a different or better way to make it stay put in all browers &
    resolutions? I'm somewhat a newbie. Thanks.

    Jeff
     
    zigzag007, Nov 28, 2009 IP
  2. stuart.letterman

    stuart.letterman Guest

    Messages:
    143
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    IE6 has a lot of annoying errors, force each element to have a zero margin and zero padding as so:

    This may solve the IE problem!

    Good luck
     
    stuart.letterman, Nov 28, 2009 IP
  3. Ashtone

    Ashtone Peon

    Messages:
    41
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    The best way is to have a main stylesheet, and extra stylesheets for each browser's using the browser check, heres an example for ie:

    <!--[if IE 6]>
    Special instructions for IE 6 here
    <![endif]-->

    Hope that helps.
     
    Ashtone, Nov 28, 2009 IP