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, Frantisek Malina <[EMAIL PROTECTED]> wrote: > As it says on the tin: > 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 suppose jQuery isn't going to read my mind yet :)