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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T05:55:10+00:00 2026-06-05T05:55:10+00:00

I am having problems with a page’s layout. I feel like the answer is

  • 0

I am having problems with a page’s layout. I feel like the answer is simple, and I’ve done quite a bit of work searching for answers and experimenting, but I just can’t seem to nail it.

The page needs a header and footer that are fixed height, but adjust horizontally with the browser window. In between, there is a ‘main’ div that should expand horizontally and vertically to fill all available space between the header and footer (but I can’t have scrollbars appear on the browser window). The ‘main’ div itself should have a left ‘sidebar’ of fixed width and a ‘content’ div taking up the remaining space.

I had an image to attach that explains what I am working towards, but I don’t have 10 rep as a new user so I can’t attach images (due to a ‘spam prevention mechanism’).

I have been playing with a fiddle here: http://jsfiddle.net/pURjN/4/

I’m looking for some pointers and direction. Please feel free to mess with that fiddle.

Thanks,
J

  • 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-06-05T05:55:12+00:00Added an answer on June 5, 2026 at 5:55 am

    Use absolute positioning. Seems like you don’t necessarily need a “main” div, but it won’t hurt either.

    #header {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 75px;
    }
    #sidebar {
        position: absolute;
        top: 75px;
        left: 0;
        bottom: 75px;
        width: 250px;
    }
    #content {
        position: absolute;
        top: 75px;
        left: 250px;
        right: 0;
        bottom: 75px;
    }
    #footer {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 75px;
    }
    

    http://jsfiddle.net/gilly3/pURjN/7/

    It works just as well without the extra divs: http://jsfiddle.net/gilly3/pURjN/8/

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

Sidebar

Related Questions

I'm having problems with my page's layout. I'm trying to do a header, 3-column,
I am having some problems getting my JS/JQ to fire in HTML5 page. Basically
I've got a page with ajax links between pages, and I'm having some problems
I'm having a problem getting a simple ASP.NET webpage to display. The page contains
I'm having problems understanding how a header(Location: http://www.google.com/); can work in the middle of
I have multiple DIVs on my page and I'm having problems populating the correct
I'm having problems with integrating the Facebook Like button. My website is being restricted
The page having problems is... http://schnell.dreamhosters.com/index.php?page=gallery# I use Firebug to debug my jQuery and
I'm having problems with Script#. I got a ASP.NET page which loads a JavaScript
I am having problems with my login page. It pulls through the Username correctly

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.