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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T00:55:49+00:00 2026-06-10T00:55:49+00:00

I have been working at this for the past day and a half. So

  • 0

I have been working at this for the past day and a half. So any help will be greatly appreciated.

The general layout has a top bar and a side bar which are position fixed. I want the content container to fill the rest of the page without a scroll bar unless it is necessary due to content. I am not sure if it is possible to do purely in CSS or if I will need to modify my html structure as well. I have posted a fiddle below to show the most simple example possible.

http://jsfiddle.net/wU2Hd/

Again, any help or pushes in the right direction will be greatly appreciated, this has been throwing me for a loop.

  • 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-10T00:55:50+00:00Added an answer on June 10, 2026 at 12:55 am

    It’s not impossible. Check out this JSFiddle I forked from yours.

    I did not need to change the HTML structure, but there were some important changes made to the CSS.

    First I removed the height: 100%; from html, body. This was forcing the scroll bar to appear.

    Then I removed the height and width declarations from .content, and gave #shell-content absolute positioning:

    #shell-content {
        background: #FFFFFF;
        position:absolute;
        left: 100px;
        top: 86px;
        bottom: 0px;
        right: 0px;
        overflow-y: auto;
    }​
    

    The left and top are values based on the explicit height you gave to your header and the explicit width you gave to your menu. The overflow-y: auto tells it to only show the scroll bar if the content out-grows its available space, but not otherwise.

    The JSFiddle has some crazy-long lorem ipsum text to show the effect. If you change it to less text, the scrollbar will disappear entirely.

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

Sidebar

Related Questions

I have been working on this for the past 5 hours. For some reason
This issue has been bugging me for the past several days. I've been working
I've been working on this for the past several days and have been stuck.
I have been working on this for the past couple of hours, and searching
I've been working on this RegEx for the past day or so and I
I have been working on an application from past 4 months and it's very
So, I have been working on this game for a bit. However, over the
I've been working away at this problem for the past 10-12 hours , and
Okay so here's the lowdown... been working on this solution for the past week
I have been writing this Android application for the past few days and everything

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.