troubleshooting Question

How to get the popup window to center of the screen even after scrolling to different positions vertically ?

Avatar of dotnetcoderpro
dotnetcoderproFlag for United States of America asked on
JavaScriptCSSASP.NET
11 Comments1 Solution490 ViewsLast Modified:

How to get the popup window to center of the screen even after scrolling to different positions vertically ?

I have the popup window such as $("#PopUpOverlay") which i get on the click of a particular links and want to get this popup window to the center of the screen always...even after scrolling vertically up and down in the browser window by applying css styles to the the center of the browser screen window. Even after scrolling some and if user clicks the link again, then popup window should pop onto the center of that portion of the screen.

Please provide me some suitable and dynamic solutions, it could be css styles and jquery code.

Thanks
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 11 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 11 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros