Here's my code : http://jsfiddle.net/d6j6e/
When you click on the gray little rectangle in the middle, you can drag it to make the DIVs smaller or bigger. A bit like in JSFiddle.
I would like to be able to resize the iframe depending of the DIV size. So If I click and drag the DIV to be bigger, well the iframe size would adjust to the bottom div size.
Any idea?
Thank you!
asked Jun 18, 2012 at 18:01
larin555
1,7194 gold badges28 silver badges43 bronze badges
1 Answer 1
Just remove your absolute values for its size?
#divId
{
height:480px;
width:640px;
}
=>
#divId { /* should be "iframeId" */
height: 100%;
width: 100%;
}
answered Jun 18, 2012 at 18:33
Bergi
671k162 gold badges1k silver badges1.5k bronze badges
Sign up to request clarification or add additional context in comments.
1 Comment
larin555
Thank you! That's so easy...dunno why I did not thought of that. Thanks again
default