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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T21:29:11+00:00 2026-06-01T21:29:11+00:00

I have these elements: <div id=button1></div> <div id=button2></div> <div id=big></div> …which need to be

  • 0

I have these elements:

<div id="button1"></div>
<div id="button2"></div>
<div id="big"></div>

…which need to be displayed like this:

|------------------|  |---------|
|                  |  | button1 |
|                  |  |---------|
|                  |
|       big        |
|                  |
|                  |  |---------|
|                  |  | button2 |
|------------------|  |---------|

What is the cleanest way using CSS to make the buttons align to the top and bottom of the big div? I want to be able to resize the big div. Also, the space between the big div and the buttons is a constant in pixels.

It’s OK to add a wrapper element, but I’d prefer if I didn’t have to. Anyway, I wouldn’t know how to do it with the wrapper element either 🙁

  • 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-01T21:29:13+00:00Added an answer on June 1, 2026 at 9:29 pm

    Put the buttons inside the “big” box:

    <div id="big">
        <div id="button1"></div>
        <div id="button2"></div>
    </div>
    

    You can position the buttons relative to their container like so:

    #big {
        position:relative;
        width:400px; height:400px;
        overflow:visible;
    } #button1, #button2 {
        width:100px; height:50px;
        position:absolute;
        right:-120px;
    } #button1 {
        top:0px;
    } #button2 {
        bottom:0px;
    }
    

    Here’s the fiddle:
    http://jsfiddle.net/Rcnbk/1/

    The trick is to set the parent position:relative and the children position:absolute

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

Sidebar

Related Questions

I want to parse xml files that have elements like these: <element>&amp</element> <element>&amp;</element> But
I have an array with 16 elements. I would like to evaluate these to
I have a slider-like widget which is basically, a div of sub-divs containing some
Say that I have three button elements in one parent div. Assuming that these
How can I have each of these a elements break on to new lines,
Lets say there are two pages with two different html elements which have the
I have these 3 icons enclosed in separate DIVs all of which are enclosed
Ok, so I have a div with a few elements in it and I
I have a div. Inside that div I have multiple elements. Some elements have
i have these html code: <body> <div id=top> <div id=panels> <div id=yes>yes</div> <div id=no>no</div>

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.