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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T16:45:10+00:00 2026-06-07T16:45:10+00:00

For example: http://jsfiddle.net/MYvYy/182/ I have a lot of ‘inner_box’ elements inside of ‘outer_box’. Inner_box

  • 0

For example: http://jsfiddle.net/MYvYy/182/

I have a lot of ‘inner_box’ elements inside of ‘outer_box’. Inner_box elements a absolute.

I would like to adjust the outer_box height so that all inner_box elements fit in the outer_box.

I know it can be done with js. But I don’t really like adjusting style with scripts.

So I was wondering if it is possible to be done using CSS?

  • 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-07T16:45:11+00:00Added an answer on June 7, 2026 at 4:45 pm

    It’s not possible with CSS alone.

    Layout flow:

    An element with position:absolute is outside of the layout flow of the rest of the page. As far as the relative parent is concerned, the absolute child occupies no space in the layout.

    This is very useful if you need to have a pop-up or a nav menu nested inside a container, because it won’t affect the layout of the container. That’s the sort of use case that position:absolute is well-suited for.

    Fixed height:

    If you need absolute content to behave as if it’s a part of the layout flow, use fixed height. Give the relative parent and the absolute child a fixed height, and avoid placing any variable-height child elements before the absolute child. If variable-height content does precede it, use a relative placeholder div with a fixed height at the location where the absolute child needs to appear.

    If position:absolute has to be used and fixed height is not an option, use JavaScript.

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

Sidebar

Related Questions

Here's an example: http://jsfiddle.net/7g8GD/1/ Once you have entered an invalid input and hit enter
First the example: http://jsfiddle.net/5S3mk/3/ I have a table whose columns need to be sortable
I have a problem that is summarized in this simple example: http://jsfiddle.net/2wFHX/ I need
I have the following example http://jsfiddle.net/zidski/Mz9QU/1/ If you click on Link2 and then Link1
Here is example: http://jsfiddle.net/pcNzb/9/ I just study, so i must have missed something or
I have this example: http://jsfiddle.net/WkpL9/ HTML: <div class=span2> <div class=image-container> <img alt= src=http://placehold.it/150x120/> <p>asdadsadasdasdsadasdasdasdasdsadsad</p>
I prepared a jsfiddle example: http://jsfiddle.net/PEH7t/11/ The problem is that I have a container
in my example http://jsfiddle.net/radek/HnXC4/2/ I defined jQuery handler for click on button that have
I have this example http://jsfiddle.net/HnfCU/ I use jQuery to show and hide the .child
I have seen this example: http://jsfiddle.net/UwEe2/306/ that is implemented with scrollleft . Now I

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.