Floating Div Position
am 31.12.2007 20:55:05 von unknown
Hi have a div on my form which contains controls. I normally have this
rendered "hidden" and then make it "visible" from a css point of view when i
need it.
I need to make it appear in the centre of the screen when the user invokes
it.
However, the window may be resized and scrolled, so I need to know how to
position this so its allways in view.
Thanks.
Re: Floating Div Position
am 01.01.2008 03:39:07 von Coskun
Hi,
I guess you can refer to window.screen object's other properties.
http://developer.mozilla.org/en/docs/DOM:window.screen.avail Width
and
http://developer.mozilla.org/en/docs/DOM:window.screen.avail Height
for example...
--
All the best,
Coskun SUNALI
MVP ASP/ASP.NET
http://sunali.com
http://www.propeople.dk
"Just Me" wrote in message
news:eP25Gd%23SIHA.5264@TK2MSFTNGP02.phx.gbl...
> Hi have a div on my form which contains controls. I normally have this
> rendered "hidden" and then make it "visible" from a css point of view when
> i need it.
>
> I need to make it appear in the centre of the screen when the user invokes
> it.
>
> However, the window may be resized and scrolled, so I need to know how to
> position this so its allways in view.
>
>
> Thanks.
>