Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6007871
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T01:44:39+00:00 2026-05-23T01:44:39+00:00

[solved] So I have a div with a constant height at the top of

  • 0

[solved]

So I have a div with a constant height at the top of my page and I want to have an iFrame below it fill up the rest of the page. Google Images and LinkedIn do something very similar

See: http://www.linkedin.com/share?viewLink=&sid=s420444224&url=http%3A%2F%2Flnkd%2Ein%2FcnjYt4&urlhash=ZGYM&pk=nprofile-view-success&pp=1&poster=22330283&uid=5484658853024890880&trk=NUS_UNIU_SHARE-title).

Here is the CSS code I have now:

#header {
  height: 60px;
  float: top;
  position: absolute;
}
#iframe {
  margin-top:61px;
  float: bottom;
  position: absolute;
}

Also, within the HTML, I have made the iFrame 99% width and 90% height.

But this isn’t working too well. I only want the iFrame to have scroll bars, but as I start to decrease the window size part of it becomes hidden (barely). As a result, a second set of scroll bars appear. By the way, this is the previous SO question I referred to when trying to tackle the problem: CSS two divs next to each other

Does anyone know how to recreate what LinkedIn does in CSS?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T01:44:40+00:00Added an answer on May 23, 2026 at 1:44 am

    I usually would resort to javascript.

    Using the jquery library you could do the following in a very simple way.

    $().ready(function() {
            $('#iFrame').height($(window).height() - 62);
        });
    
    
    $(window).resize(function() {
            $('#iFrame').height($(window).height() - 62);
        });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Edit: I have solved this by myself. See my answer below I have set
Problem solved: Thanks guys, see my answer below. I have a website running in
I have an element in a div, which has a background image. Below the
In my web-application i have a div which loads another page: $('#main').load('pages/main.php'); main.php consists
I have a problem that I would like have solved via a SQL query.
The responses I've got to this question have solved the problem I had in
This is something I've pseudo-solved many times and have never quite found a solution
I have a div with an image in it, and the image is too
I have div, which has id 'content'. It's visible. <div id=wrapper style=display:block> <div id=content>
I have solved this with PHP by adding the 'time()' to the img src

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.