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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T20:36:53+00:00 2026-06-13T20:36:53+00:00

Im trying to have one div which has min height 100% and antoher within

  • 0

Im trying to have one div which has min height 100% and antoher within with min height 100% as well.

I am not allowed to touch the markup, it has to be done with pure css. It also must work in IE6+ so i cant use display:table.

How can i achieve this?

Currently i have html,body set to height:100%, wrapper set to min-height:100% but then the inner div needs the outer div to have a height setting in order to have a % setting itself…

What is the best solution for this problem?

  • 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-13T20:36:55+00:00Added an answer on June 13, 2026 at 8:36 pm

    If you need to support IE6, min-height is out of the picture.

    You could use min-height in other browsers and add a conditional statement to set height rather than min-height in IE.

    IE8 and above support min-height.

    For the browser that do support min-height, you don’t actually need to nest min-height declarations. You only need min-height on the outer element, the inner element uses height.

    Example: http://jsfiddle.net/dmyN6/

    body, html {
        height: 100%;   
    }
    
    .a {
        min-height: 100%;   
        background-color: blue;
    }
    
    .b {
        height: 100%;
        background-color: aqua;    
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to have a div's left property change by its self - one
I'm trying to learn some programming with jQuery. I have a div that has
I am trying to extract from a webpage which has the following markup <div
i'm trying to have a floated div (call it 'sidebar') display 100% of container
I am trying to append text to a div which has been dynamically created.
I'm trying to make it so when one div becomes smaller in height the
I'm trying to make a div 's height stretch out to 100% but everything
I have one .net windows application I'm trying to read .xml file from c#
I have one question, I was trying to find more information on the internet
I have one user (only one, all the others are fine) trying to update

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.