Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

absolute position problem

Status
Not open for further replies.

ChadBryant

Programmer
Oct 29, 2004
11
US
I have a table that I am positioning at an absolute position with the following style attribute: style="position: absolute; top: 120px; left: 290px;"

It displays correctly in IE and Safari, but in Firefox it is correct in it's top position but the left position is way way out to the right. this makes no sense to me as it is interpreting a pixel correctly in terms of the top but when it does the left position, it is like it multiplies it by 2 or 3.

Any ideas? If I need to make this dynamic so that I can make the left one thing for all non-firefox browsers but something else for Firefox, how would I do this?


Thanks in advance.
 
Ok, the topmargin and leftmargin for the body tag are set to 0...cell spacing and cell padding for the table is 0. It must be something else...

Thanks
 
You should check out the DOM Inspector that comes with Firefox. I'm not sure it gets installed by default but it's extremely useful for situations like these. You can check the style attributes for all the html elements as well as the 'computed style' for these elements to see exactly how FF is rendering your page.

 
Thanks. I finally figured it out... I had my table right after the body tag and before some ASP script. I moved it to after the asp script and it worked fine. doesn't really make much sense, but it's working.

Thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top