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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T19:33:21+00:00 2026-05-20T19:33:21+00:00

I have another CSS problem. A layout that escapes me. I could, I suppose,

  • 0

I have another CSS problem. A layout that escapes me.

I could, I suppose, get the desired effect by messing about with JavaScript, but that always bugs me – it leads to having the code that controls the layout split between the markup file and the CSS file and the javascript file, and that just makes maintenance a mess.

I’ve created an example of what I don’t quite want: http://jsfiddle.net/4sCKq/1/

The split between header and body is fixed – it’s a project-wide thing that I can’t change for this page. You’ll notice that the header has a fixed height, and the body takes up the rest. This cannot change.

The problem is the left div, within the body.

You’ll notice here that the left div has a fixed width, and the main div takes up the rest. This also cannot change.

You’ll notice that the left div has a variable height, taking up what is left of the browser window, from the header down. Yep, this is also required.

And at the bottom of the left div I have a fixed-size div, that has the same width as the left div, and a fixed height, and that stays at the bottom, as the window resizes. This is also required.

What is left is the left-main div. I want this to take up all of the left div that is not contained by the left-bottom div. That is, between the two of them, left-main and left-bottom should completely fill the left div, regardless of the size of the browser window. But, as the window resizes, it should be the left-main div that grows and shrinks, the left-bottom div should remain at the bottom of the window, and its size should stay constant.

I’ve added the show-top and show-bottom divs solely to make it clear where the limits of the left-main div are. If you give left-main a large enough height, it looks like it is filling the div, but in fact it is disappearing behind the left-bottom div. The fact that you can’t see the show-bottom div reveals that. I cannot have this – I need all of what is within the left-main to be visible.

So, any ideas?

  • 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-20T19:33:21+00:00Added an answer on May 20, 2026 at 7:33 pm

    Rather than define a height you can define the bottom absolute pixel value.
    Changing one line in your jsfiddle seems to do it, if i understand the question:

    #left-main
    {
        background-color: #AA9977;
    
        position: absolute;
        left: 0;
        right: 0;
        top: 0;
        bottom: 100px;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a Java application that launches another java application. The launcher has a
I have an application that writes to another application and needs to provide the
Put it another way: what code have you written that cannot fail. I'm interested
Hey! I am not trying to push my luck here but I have another
I'm developing a Linux driver loadable module and I have to use another device
I have code to create another row (div with inputs) on a button click.
I have a situation where another developer is including source files from a project
I have a ListView inside another ListView, and I'd like to hide a table
I have a value like this: Foo Bar Another Value something else What regex
I have a Form being launched from another form on a different thread. Most

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.