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

  • Home
  • SEARCH
  • 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 1006709
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T08:30:14+00:00 2026-05-16T08:30:14+00:00

I have a few divs inside a div. <div class=outside> <div class=inside></div> <div class=inside></div>

  • 0

I have a few divs inside a div.

<div class="outside">
  <div class="inside"></div>
  <div class="inside></div>
</div>

I want to align the inner divs at bottom middle of the outside div.

To align them at the bottom I tried

.outside { position:relative;} .inside { bottom:0px; position:absolute; }

Which works but puts the divs over each other so one of the divs isn’t viewable, how can I fix this? and how can I move them to the center?

  • 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-16T08:30:14+00:00Added an answer on May 16, 2026 at 8:30 am

    Once you start using position: absolute, you remove those elements from the regular documentflow, and they won’t be counted for width calculations, wrapping, floating, etc… They’re basically off in their own little universe as far as the rest of the doucment’s concerned. If you don’t want the two “inside” divs to overlap each other, you’ll have to wrap them in yet another div, position that new div, and let the original two position themselves as normal within that new container.

    <style type="text/css">
        .outside { position: relative }
        .container { position: absolute; bottom: 0 }
        .inside { ... }
    </style>
    
    <div class="outside">
        <div class="container">
             <div class="inside">lorem</div>
             <div class="inside">ipsum</div>
        </div>
    </div>
    

    This way, the container is the only thing affected by the position: absolute and won’t fight another element within the ‘outside’ div. And within the container, the two “inside” divs will position themselves as they normally would anywhere else.

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

Sidebar

Related Questions

I have a DIV with a classed foobar , and a few DIVs inside
I have a few nested divs with different articles in them. <div id=maindiv onmouseover=showbuttons()
I have few nested DIVs at page. I want to add event only for
I have a few divs that I want to animate using jQuery. However, I
Is it possible to stack three DIVs vertically and have just the middle div
I have a div that is wrapped in a few other divs that are
I have a few divs that follow the mouse position slowly. In the begenning
I have many inputs in a few divs, every div is being hidden and
I have a few div boxes that are using position:fixed and I use a
I have a parent div and few other divs nested in it containing text.

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.