> -------Original Message-------
> From: Benjamin Sterling <[EMAIL PROTECTED]>
> Subject: Re: [jQuery] Centering jqmodal dialog windows
> Sent: Feb 15 '07 18:28
>
> Dave,
> you need to do something like:
>
> .jqWindow{
> position:absolute;
> width:300px;
> height: 300px;
> margin:-150px 0 0 -150px;
> left:50%;
> top:50%;
> }
>
>
> --
> Benjamin Sterling
> [LINK: http://www.KenzoMedia.com] http://www.KenzoMedia.com
> [LINK: http://www.KenzoHosting.com] http://www.KenzoHosting.com
Thanks for this reply, unfortunately, when I defined the id for my class as
#editPanelTitle {
position:absolute;
font-family:verdana,tahoma,helvetica;
width: 400px;
display: none;
top:50%;
left:50%;
}
the jqmodal window appeared at the right of the screen, about 100 pixels down
from the top, but definitely not vertically aligned. When I added the "margin"
property you suggested, the window did not appear at all. No JS errors were
reported.
- Dave
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/