I have an HTML page containing two div elements. I want to arrange these two so that one of them occupies the entire page, and the other appears as a small preview window in the upper right corner of the browser. when the user clicks on the preview, the contents of this DIV are exchanged with the DIV occupying the page.
Div elements are google widgets. (Annotated timeline, timeline, etc.).
EDIT: I am using the method provided by wdm to achieve the above-asked question. The problem is that I have an IFRAME that I want to swap with the DIV element. I put an iframe inside a div tag like this
<div class="b small">
<iframe src="http://somerandomsite.com" name="framename" id="frameid"> </iframe>
</div>
IFrame does not resize correctly. I suppose because CSS shaping does not work on the iframe element properly.
Any ideas on how to resize the iframe so that it resizes by click?
source
share