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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T07:00:36+00:00 2026-06-12T07:00:36+00:00

I have a container div, containing 3 divs, a sidebar, a content and a

  • 0

I have a container div, containing 3 divs, a sidebar, a content and a header while all the elements inside are rendered as they should (they are positioned as “relative” if this may influence in my problem), the sidebar and the content won’t render min-height: 100%; no matter what…

my div won’t stretch with the min-height as it is supposed to…

here is the code: http://jsfiddle.net/vhZV6/4/

as you can see (I put a white background to best recognize it) the div wich is supposed to stretch simply won’t…

Edit: here is a temp site where I tried to implement the solutions… http://www.wabisuke-team.org/Temp/home.html as you can see, all but the last 2 pages (strees and “contattateci”) are rendered as they should, but those 2 while have a messed background image out of the div not resizing as it should…

Edit:
I solved this by putting a min-height in pixels, instead of in percentage, it now works as i wanted it to, thanks everyone for your efforts and for you patience ^^

  • 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-12T07:00:37+00:00Added an answer on June 12, 2026 at 7:00 am

    here is the fiddle with long content http://jsfiddle.net/xM4NC/

    and here is with short http://jsfiddle.net/xM4NC/1/

    I set body to height 100%, but the content div to min-height 100%. That way it’s parent had a defined height, so that div will be at least as tall as the body, but will grow beyond it if necessary. Then added a left margin and floated the sidebar in that space

    body {
        margin: 0;
        padding: 0;
        height: 100%;
    }
    #content {
        background: #EEE;
        border-left: 1px solid #000;
        border-right: 1px solid #000;
        padding: 0 20px 0 20px;
        margin: auto;
        margin-left: 180px;
        font: 1.5em arial, verdana, sans-serif;
        width: 960px;
        min-height: 100%;
    }
    

    and the html

    <div class="header">header</div>
    <div class="sidebar1">sidebar</div>
    <div id="content">
        text
    </div>​
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a container div, conteining 3 divs, a sidebar, a content and a
So I have 3 divs contained inside a containing div like such: <div id=contain>
As the title explains, I have one container div, containing two floating divs of
I have one containing div with two child divs. All divs are the same
I have a div that contains inside 3 'floated' divs. The containing div has
I'm trying to create a div containing 3 different divs: the header, the content
I have an opaque div.opaque containing another div.inner. Since inner div is contained inside
I have a container div (red) with a top padding of 400px. The content
I have a container DIV which contains several block-DIVS. Every block-DIV contains SPAN items
I'm with a little problem. I have the container div for some elements which

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.