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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T23:12:00+00:00 2026-05-21T23:12:00+00:00

To describe my item- I have a div element which grows in size if

  • 0

To describe my item- I have a div element which grows in size if more content is added- also the parent div grows in size as it should be.

Then I have 2 div elements one floated left and the other on the right. I set height to 100% but that don’t work. How could I achieve such behavior?

http://109.91.124.194/nucleareducated_2/index.php

  • 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-21T23:12:00+00:00Added an answer on May 21, 2026 at 11:12 pm

    This is a typical problem that unfortunately does not have a simple solution. Do a quick Google search for equal height columns and you will see what I mean. Your code is not working because height:100% does not work unless the parent container has a specified height to calculate what 100% is. Without a specified height set, then height:100% defaults to height:auto and you end up with divs that do not expand to the size of the parent.

    As you have probably guessed, it’s pretty hard to set the height of the parent div because it changes. The answers include setting the height dynamically with Javascript, or more often than not, just faking it so that it appears that the columns expand to the size of the parent.

    IMO the best way is to use the css table attribute if you only care about newer browsers, it does not work on IE7 or older.

    #containerdiv {
        display:table;
    }
    
    #childdivleft, #childdivcenter, #childdivright {
        display: table-cell;
    }
    

    The next best is to use large values for padding and a corresping negative margin on the bottom of the child containers.

    #leftdiv,#rightdiv {
        padding-bottom: 32767px;
        margin-bottom: -32767px;
    }
    

    You can also use –

    jQuery – Columns of Equal Height with JQuery

    several other solutions – CSS – Equal Height Columns?

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

Sidebar

Related Questions

This is a tricky problem to describe...I have a fixed height <div> on my
I have this tableview in my app which has a particular item name such
Updated I have updated this question to more accurately describe the cause of my
I have a parent/child relationship defined which, unfortunately, cannot be maintained via a foreign
I'll try to describe the situation. We have a web service; on each request
Let me describe the situation I am trying to do: I have a list
I have a text file which I intend to convert to a CSV (in
http://jsfiddle.net/jasondavis/Mt87G/1/ I am trying to do an un-ordered list, each list item will have
Assume you have the same data model as described here . Table: Item Columns:
EDIT italics = more detailed explanation added to the question. Thanks. I'm building a

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.