Hi again,
I have a question about the browser's veiwport. I'ts about the document.body.offsetWidth and offsetHeight. As I can see - it refeers to the total widht and height in the browser, not the VISIBLE width and height!
I'm interest in placing af DIV in center of the visible part of the browser's viewport. That is if there is scroll-bar, and the user scroll down on the page, and 'opens' a DIV (hidden/vissible), then i want it placed in center on the browser's vissible part of the viewport.
I tried to do that with the body.offsetHeight but the DIV is placed according to the total heigth of the browsers viewport, not the vissible height.
Hmmm - kind of difficult to explain
Hope You can give a hint
Regards,
Claus
I have a question about the browser's veiwport. I'ts about the document.body.offsetWidth and offsetHeight. As I can see - it refeers to the total widht and height in the browser, not the VISIBLE width and height!
I'm interest in placing af DIV in center of the visible part of the browser's viewport. That is if there is scroll-bar, and the user scroll down on the page, and 'opens' a DIV (hidden/vissible), then i want it placed in center on the browser's vissible part of the viewport.
I tried to do that with the body.offsetHeight but the DIV is placed according to the total heigth of the browsers viewport, not the vissible height.
Hmmm - kind of difficult to explain
Hope You can give a hint
Regards,
Claus