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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T03:43:01+00:00 2026-05-27T03:43:01+00:00

I have two divs on a page with the same height position. I’m trying

  • 0

I have two divs on a page with the same height position. I’m trying to make them expandable, allot like what goes on in the WordPress dashboard area:

enter image description here

Now i’ve got the left div to expand but only with the right div staying at the same width. I need both to expand on zooming in and out.

any ideas how this is done?

I’ve been looking it up for the past hour but i cant find anything.

A link to a tutorial would be cool (good luck finding one).

EDIT:

Here guys, i found something similar: http://jsfiddle.net/Khez/2zLPF/embedded/result/

do you see how the two divs side by side expand? the green and blue ones…

  • 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-27T03:43:01+00:00Added an answer on May 27, 2026 at 3:43 am

    If you want your divs to dynamically change depending on the width of their container, set the widths using percentages:

    HTML:

    <div class="column">
        <div class="wrapper">
            <p>Text</p>
        </div>
    </div>
    <div class="column">
        <div class="wrapper">
            <p>Text</p>
        </div>
    </div>
    

    CSS:

    .column {
        float: left;
        width: 50%; }
    .column div { margin: 0 20px; /* Set the spacing between the cells */ }
    

    Preview: http://jsfiddle.net/Wexcode/F7h2C/

    NOTE: Because you are setting the combined widths of the columns to 100%, you cannot add padding to .column if you want them to be on the same line. The inner div wrapper will allow you to add spacing between your two columns. You should apply all background attributes to .wrapper.

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

Sidebar

Related Questions

I have a page with the following two divs: <div id=searchResults> </div> <div class=postSearchOptions
I have two divs. I would like to move/populate the text from div id
i have two divs with the same ids but one has display=none and the
i have two divs on a page. each has several dijits. i have atoggle
Suppose I have two DIVs on my page. <body> <div id=d1></div> <div id=d2></div> </body>
I have two divs, both with position:absolute; , one inside the other. The parent
In a page with n divs of the same class, I want to have
I have two div s in the same line, div_left , div_right I'd like
I have two divs on my page, and between the two div's I have
I have two divs on a page. a grid-container that takes a background and

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.