I am using the jQuery $(\'selector\').css(\'top\') to get the top value to help position dynamic elements and I find that I get different results based on the browser.
Use $('selector').offset().top to get the numeric value of the top position. .css() returns the CSS value of the top-position, which could be auto, 1234px, or something similar - not a reliable method to get the top position.