954,598 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Have an iframe expand in the center of the screen

I want to have an iframe expand and center on the screen when a button is clicked. This would be similar to creating a lightbox for it but I dont want to have the content in the iframe reload. I have found solutions that can resize an element but it then pushes everything around it to make room. Here is an example of what I dont want: grow example

I have tried setting position to absolute but then auto margins dont seem to work.

divin757
Light Poster
39 posts since Apr 2009
Reputation Points: 18
Solved Threads: 9
 

Google images is a perfect example of what I'm wanting. It allows for an element to expand over top of the existing content. I would still need to have it center on the screen.

divin757
Light Poster
39 posts since Apr 2009
Reputation Points: 18
Solved Threads: 9
 
drjohn
Posting Pro in Training
448 posts since Mar 2010
Reputation Points: 76
Solved Threads: 80
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: