Forum Moderators: open
I have a minor problem with the site I am working now. It is about compatibility.
I have always tried to make every site I develop compatible both with IExplorer and Netscape. It happens that this time I have to absolutely have the page vertically centered in the client area of the window which is done by a function called every time the onResize event is triggered. To accomplish this with IE I could do something like:
document.body.topMargin = (document.body.clientHeight - document.all.pagebody.scrollHeight) / 2;
but the problem with Netscape is it does not accept the scroolHeight property above used. Please note that: scrollHeight returns the height of the client area; topMargin defines the top margin in pixels (obvious, I know :) , but I feel I should include these notes anyway...); clientHeight is related to the total height of the client area on which the page is displayed; and pagebody, which is the ID of the main table in my page.
Does anyone has a sugestion that could solve this?
Thanks alot,
D Nimrod
[webmasterworld.com...]
Suppose I should stick the link to the page here as well really (two threads on the same topic at the same time):
[wpdfd.com...]