Google Groups Home
Help | Sign in
Set #iframe height to "height of the window " - "height of the #wrapper"
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
Frantisek Malina  
View profile
 More options May 11, 9:07 am
From: Frantisek Malina <fmal...@gmail.com>
Date: Sun, 11 May 2008 06:07:22 -0700 (PDT)
Local: Sun, May 11 2008 9:07 am
Subject: Set #iframe height to "height of the window " - "height of the #wrapper"
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 :)


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Michael Geary  
View profile
 More options May 11, 11:22 am
From: "Michael Geary" <M...@Geary.com>
Date: Sun, 11 May 2008 08:22:18 -0700
Local: Sun, May 11 2008 11:22 am
Subject: RE: [jQuery] Set #iframe height to "height of the window " - "height of the #wrapper"
Something like this:

$('#iframe').height( $(window).height() - $('#wrapper').height() + 'px' );


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Frantisek Malina  
View profile
 More options May 11, 11:10 am
From: Frantisek Malina <fmal...@gmail.com>
Date: Sun, 11 May 2008 08:10:53 -0700 (PDT)
Local: Sun, May 11 2008 11:10 am
Subject: Re: Set #iframe height to "height of the window " - "height of the #wrapper"
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 <fmal...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google