Help with div absolute positioning, firefox/IE

Discussion in 'HTML & Website Design' started by ian_batten, Jul 21, 2007.

  1. #1
    Hello peeps,
    I am having a very annoying problem with some divs. I would like to float a couple of images near the middle of the page, so have postitioned some divs with the images in. The code is as follows:

    <div style="position: absolute; width: 369px; height: 29px; valign: top; left: 369px; top: 244px; margin: 0; border-width: 0; padding: 0;">
    <img src="uploadtxt.gif" width="475" height="42">
    </div>

    <div style="position: absolute; width: 110px; height: 29px; valign: top; left: 804px; top: 244px; margin: 0; border-width: 0; padding: 0;"><img src="uploadimg.gif" width="155" height="91">
    </div>

    The positioning is fine in IE, however when I try and view it in firefox, it's about 20 pixels or so lower, and messes up the look of the page. Any idea how to keep the positioning the same in both firefox, and IE?
    Thanks in advance!
     
    ian_batten, Jul 21, 2007 IP
  2. Dan Schulz

    Dan Schulz Peon

    Messages:
    6,032
    Likes Received:
    436
    Best Answers:
    0
    Trophy Points:
    0
    #2
    What does the full code for the HTML and CSS file look like, and what are you trying to achieve with the use of absolute positioning?
     
    Dan Schulz, Jul 21, 2007 IP