on-internet
← Community

Center Fancybox within Iframe to the Parent's center

Stack Overflow ·

I've searched on here but it seems there was no question like this before. I have an iframe in a page. On the iframe, there is fancybox popup. But fancybox centers itself based on the iframe dimension, not the parent dimension. Can i make the fancybox to center by the parent's dimension? And click the "Click me" link, and the fancybox will be centered on the center of the iframe document..

Comments

Sign in or sign up to comment and upvote.

No comments yet.