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 7676201
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T17:08:44+00:00 2026-05-31T17:08:44+00:00

In this example, http://jsfiddle.net/mnXH9/ , the height of the content-display element and the height

  • 0

In this example, http://jsfiddle.net/mnXH9/, the height of the content-display element and the height of the nav-menu-container are fixed.

How do I make the height of the content-display and nav-menu-container elements extend to the remaining height of the browser window as the browser height is being adjusted by a user provided the height in the browser window is greater than 400px (The height of the header plus the nav-menu-container)?

I would like for the scrollbar to be inside the nav-menu-content element if the total height in the browser is greater than the sum of the height of the header (100px) and the nav-menu-container element (300px).

If the browser window’s height is less than 400px then a scrollbar would appear in the browser window to allow scrolling throughout the 100px header and the 300px min-height of the below elements.

EDIT

Attached are photoshopped mockups of what the jsfiddle should look like.

What tab 1 should look like when the browser height is less than 400px

tab 1 when the browser height is less than 400px

What tab 1 should look like when the browser height is greater than 400px

tab 1 when the browser height is greater than 400px

What tab 2 should look like when the browser height is less than 400px

tab 2 when the browser height is less than 400px

What tab 2 should look like when the browser height is greater than 400px

tab 2 when the browser height is greater than 400px

EDIT

enter image description here

tab 2 of http://jsfiddle.net/mnXH9/25/show/

  • 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-31T17:08:46+00:00Added an answer on May 31, 2026 at 5:08 pm

    EDIT–switched fiddle versions to one working better based off comments and noted IE8.

    View a full screen version here (view css here). This uses @media queries and some other CSS3, so it will not work on older browsers, but I believe it does exactly what you requested. I reset the two columns to be position: absolute to achieve this. Some javascript to check for height could be used to fix older browsers if necessary.

    IE8 (if you care) needs to also have the overflow: auto set on the #tabs (I removed it from that to the .panel inside for better effects on other browsers).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

example: http://jsfiddle.net/kuTLf/ code looks like this: <div id=main> <div id=slideshow class=pics> <div id=nav></div> <img
This example working great because here containment is body http://jsfiddle.net/roXon/hMmbK/2/ when i use container
Based in this example http://jsfiddle.net/Nb3uW/30/ how can make it to show each link the
See this example: http://jsfiddle.net/EwtaC/1/ The images are styled via display:inline-block. I understand that whitespace
This example shows what I am trying to do: http://jsfiddle.net/Dqjvy/ I would like it
Ok, I'm very simply trying to take this example... http://jsfiddle.net/shanabus/HGF59/ and put it on
You can see the example here: http://jsfiddle.net/8EHED/8/ This is a tricky problem because I
im following this example http://jsfiddle.net/rniemeyer/badZb/ . I just copy and paste the exact code
I have seen this example: http://jsfiddle.net/UwEe2/306/ that is implemented with scrollleft . Now I
Here's my jsfiddle example: http://jsfiddle.net/7PqqT/ Update: This is my work around solution: http://jsfiddle.net/7PqqT/1/ However

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.