Ie, Nn, And Firefox Div Positioning

Discussion in 'GR Classic Archive' started by Keelz, Aug 6, 2005.

  1. Keelz

    Keelz Senior Member

    Posts:
    368
    Likes Received:
    0
    Joined:
    Jun 13, 2005
    Ive been trying to get cross-browser compatability for my site, which was designed for, and works perfectly on, IE. However on testing it using firefox and netscape, all of my positioned layers are higher than normal :S. What is going on here? Surely a pixel is a pixel, and if something's (for example) 20px or so from the right, its always in the same position:S. What is reading what differently?
     
  2. Keelz

    Keelz Senior Member

    Posts:
    368
    Likes Received:
    0
    Joined:
    Jun 13, 2005
    any1 guru here with coding plz?
     
  3. KrazyNick

    KrazyNick Well-Known Member

    Posts:
    3,248
    Likes Received:
    0
    Joined:
    Apr 8, 2005
    i know codedfx is a good site that you might learn some stuff on ^_^


    Site-http://www.codedfx.com/forums/index.php?act=idx

    hope this works
     
  4. xlink

    xlink GR's Tech Enthusiast

    Posts:
    8,054
    Likes Received:
    3
    Joined:
    Nov 19, 2004
    it's simple, each browser interprets positioning diferently. netscape and firefox use a very similar engine so they look about the same, IE uses it's own thing and so does opera.

    EDIT: the typical solution to this is to use tables though that can get somewhat complex. also relative positioning renders itself diferently at diferent screen resolutions... don't do it.
     
  5. omle555

    omle555 Well-Known Member

    Posts:
    68
    Likes Received:
    0
    Joined:
    May 9, 2005
    yeah tables alays fix it for me:)
     
  6. ~JB~

    ~JB~ Well-Known Member

    Posts:
    188
    Likes Received:
    0
    Joined:
    Jul 12, 2005
    Tables still mess up in IE.
     
  7. himster

    himster Well-Known Member

    Posts:
    2,049
    Likes Received:
    0
    Joined:
    Dec 18, 2004
    position: absolute;
    top: 30px;
    right: 30px;


    Just add that in your css to whatever you are trying to position, should work. (edit the numbers though)
     

Share This Page