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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T00:59:44+00:00 2026-06-17T00:59:44+00:00

I have something like this: <div class=top>top</div> <div class=container> <div class=left>left</div> <div class=right>right</div> </div>

  • 0

I have something like this:

<div class="top">top</div>
<div class="container">
    <div class="left">left</div>
    <div class="right">right</div>
</div>
<div class="bottom">bottom</div>

Relevant code in jsFiddle

As you can see, between top and bottom divs, there is a div container. I want this div container to move bottom dive as much as is needed (and i don’t want it to be a fixed value – that means if, lets say left container will get much higher – the bottom div will be pushed down as well.

How can i do that?

  • 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-17T00:59:45+00:00Added an answer on June 17, 2026 at 12:59 am

    This is a simple seeming problem that ends up being kind of tricky. The above suggestion about position:relative vs. position:absolute are a good first step. After that you need to make some room for the set width right div:

    .left {
        height: 100%;
        min-height: 50px;
        border:1px dashed red;
        padding-right: 50px;      <---
    }
    

    Then float your right div in the space you made:

    .right {
        float:right;              <---
        width: 50px;              (This needs to match the padding-right value above.)
        text-align: right;
        min-height: 50px;
        height: 100%;
        border:1px dashed blue;
    }
    

    Finally, put the right div before the left div in the html:

    <div class="top">top</div>
    <div class="container">
        <div class="right">right</div>
        <div class="left">left</div>
    </div>
    <div class="bottom">bottom</div>
    

    (Tested in Chrome and IE.)

    See: Right div fix width, left div extend to max width?

    You can check out a fiddle here: http://jsfiddle.net/x3QfG/1/

    Will that work for you?

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

Sidebar

Related Questions

I have something like this currently: <div class = className style = position: absolute;
i have my html something like this... <div class = content> <div class =
So basically I have something like this <div class=iframe-holder> <span></span> <iframe src=iframe.html width=200 height=200
I want to have 3 divs aligned inside a container div, something like this:
I have a div class that looks something like this: <div class=objects> X </div>
atm I have something like this: $('#fish').append(<div data-bind='foreach: rows'> + <div ... + <p>...</p>..);
I want to parse a html content that have something like this: <div id=sometext>Lorem<br>
I have a div tag which looks something like this: <div id=some id here
I usually have my structure laid out something like this: <div id=all> <div id=page>
I have a setup, something confusing like this: <ListView> <ItemTemplate> <div id=Content> <asp: TextBox

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.