[jQuery] Re: Set #iframe height to "height of the window " - "height of the #wrapper"

2008-05-11 Thread Frantisek Malina
How to make this easier on the eyes? $(document).ready(function(){ $("iframe").height($(window).height() - $("#wrapper").height() - 20); window.onresize = function() { // repetition $("iframe").height($(window).height() - $("#wrapper").height() - 20); }; }); On May 11, 2:07 pm, Fra

[jQuery] Re: Set #iframe height to "height of the window " - "height of the #wrapper"

2008-05-11 Thread Michael Geary
Something like this: $('#iframe').height( $(window).height() - $('#wrapper').height() + 'px' ); > How do I set height of the element called #iframe to "height > of the window " - "height of the #wrapper div"? > > I'd love to write: > #iframe.height = window.height - #wrapper.height > > But I