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

  • Home
  • SEARCH
  • 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 7754787
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T12:24:05+00:00 2026-06-01T12:24:05+00:00

I have, what I estimate, to be a simple problem. I have a side

  • 0

I have, what I estimate, to be a simple problem. I have a side bar on my page with its own unique color and I would like it to grow and shrink based on the text in the main content area so that it stretches from the nav bar to the footer. I tried setting a height on it but that just forces the whole content area to have tons of white space at the bottom. I would like for the height of the sidebar to be dictated by the amount of content in the main area.

Here is the CSS for the sidebar (if I need to post more code please let me know):

.LeftSidebar
{
float: left;
background-color: #1b619c;
color: White;
width: 175px;
text-align: center;
padding: 20px;
clear:both;
}

I am still trying to learn so any help would be appreciated. Thanks in advance!

  • 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-01T12:24:06+00:00Added an answer on June 1, 2026 at 12:24 pm

    What you are looking for is a css column. There are a couple of options you could go with a css wrapper that sets the three column layout or two column layout. I would refer you to the following website:

    http://matthewjamestaylor.com/blog/perfect-2-column-left-menu.htm

    Or if you are using CSS3 markup then you could also use the display:table and display:table-cell markup to set your columns. Please refer to this site:

    http://www.onenaught.com/posts/201/use-css-displaytable-for-layout

    div#ContentWrapper { display: table; }
    div#LeftSidebar { display: table-cell; }
    div#MainContent { display: table-cell; }
    

    I am showing ID’s because the only time you should be using a class is when there are multiple references to that class on the same page.

    However it’s going to be a bit more complicated than just modifying the css for the sidebar column.

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

Sidebar

Related Questions

I have two set of samples that are time independent. I would like to
Every time I have to estimate time for a project (or review someone else's
I have recently been asked to estimate a piece of work which will provide
Some people have suggested that when doing an estimate one should make a lower
I have an Informix-SQL based Pawnshop app which calculates an estimate of how much
I am a 10year+, C++ linux/windows developer and I have been asked to estimate
I am using Jags and I have defined two different models to estimate a
The problem seems simple at first: just assign an id and represent that in
I have a simple ActiveRecord object representing an estimated time of arrival. class Eta
I have a simple image i select with (i've also try on() and one()

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.