0

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

1 Answer 1

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
Sign up to request clarification or add additional context in comments.

1 Comment

Thank you! That's so easy...dunno why I did not thought of that. Thanks again

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.