tags:

views:

17

answers:

1

I have an 'iframe' next to a 'form'. The form needs to have absolute width (width:450px), and the width of iframe will be relative as it will be whatever is left from the form. So for the iframe I will need something equivalent to 'width: 100% - 450px'. How can I achieve that?

Thanks in advance.

A: 

You can use jQuery to "query" for the current page and element dimensions, so some math and update the sizes accordingly.

http://api.jquery.com/width/

AndrewDotHay
Thanks Andrew, this is just what I need.
Lee