I already asked a more general question, with a great answer.
However, I want a more tricky centered floating popup:
If my page is 1000px high, and I’m viewing only the upper portion of it, I do not wish the popup to pop at 500px, but rather at the middle of the visible portion of the screen.
Is there a way to access the visible portion of the page in CSS?
Thanks
you should use CSS (margin: 0 auto;) for horizontal centering and javascript (viewport height) for the vertical one.
check this example:
http://www.alistapart.com/d/footers/footer_variation1.html