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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T09:45:55+00:00 2026-05-30T09:45:55+00:00

I know that there have been a number of posts regarding the height:100% declaration

  • 0

I know that there have been a number of posts regarding the height:100% declaration in CSS, yet none of them have resolved the issue I’m struggling with.

In a nutshell, this is what I’m facing: http://cornerstonearts.hostasaurus.com/about/cornerstone_history

All of the height settings for the elements and container divs – html, body, #static-content, #sidebar, #static-maincontent – are 100%:

html {
height: 100%;
}

body {
background-color:#d5af6a;
margin:0;
height: 100%;
}

#static-content {
width:960px;
background-color:#FFF;
margin-top: 0px;
margin-right: auto;
margin-bottom: 0px;
margin-left: auto;
position: relative;
height: 100%;
overflow-y: visible;
}

#sidebar {
width:320px;
position: absolute;
left: 0px;
top: 0px;
height: 100%;
overflow-y: visible;
}

#static-maincontent {
width:600px;
position: absolute;
left: 340px;
top: 0px;
border-bottom-width: 1px;
border-bottom-style: solid;
border-bottom-color: #AC740C;
height: 100%;
overflow-y: visible;
}

I read a couple of posts that suggest the problem might be the use of absolute positioning. I didn’t see how that could be the cause. If a DIV is absolutely positioned, it should still expand to accommodate its contents.

Nevertheless, using Firebug, I changed all of the elements to be positioned relatively and had the sidebar and main columns float left. I still had the same problem.

This is one of those things that I’m sure must have a simple solution that I’m just not seeing. After all, how hard can it be to have a page element expand to 100% of the height of its container?

Any help would be appreciated.

Thanks!

  • 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-30T09:45:56+00:00Added an answer on May 30, 2026 at 9:45 am

    An element positioned absolute doesn’t affect the wrapping elements in any way. So the height of your div#static-maincontent doesn’t really translate to div#static-content… it just floats above all other elements.

    • Remove all position:absolute
    • give div#sidebar a float:left
    • give div#static-maincontent a float:right
    • add something like <div style=”clear:both;”> after div#static-maincontent and INSIDE div#static-content
    • remove height: 100% from div#static-content

    This should work (at least with firebug).

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

Sidebar

Related Questions

So I know there have been a number of similar posts, but I think
I know that there must be some differences. I have a Silverlight component (
Does anyone know there have any other way that (by not using json_encode and
Does anyone know do there have any way that I can encrypt the array
I know we have ILdasm, but is there any tool out there that will
I have a cost optimization request that I don't know how if there is
There have been several questions on SO regarding getting Contacts numbers using the Contacts
I know that there is no way to fully protect our code. I also
I know that there are many free and not so free compression libraries out
I know that there are lots of examples out there on this, but they

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.