Home > Archive > ASP .NET > December 2007 > Floating Div Position
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Floating Div Position
|
|
| Just Me 2007-12-31, 7:14 pm |
| 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.
| |
| Coskun SUNALI [MVP] 2007-12-31, 10:17 pm |
| Hi,
I guess you can refer to window.screen object's other properties.
http://developer.mozilla.org/en/doc...reen.availWidth
and
http://developer.mozilla.org/en/doc...een.availHeight
for example...
--
All the best,
Coskun SUNALI
MVP ASP/ASP.NET
http://sunali.com
http://www.propeople.dk
"Just Me" <news.microsoft.com> 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.
>
|
|
|
|
|