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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T01:48:49+00:00 2026-06-14T01:48:49+00:00

In the following code, the left both divs have different heights (not fixed). Is

  • 0

In the following code, the left both divs have different heights (not fixed). Is there a way to make height of div with the less height equal to the height of div with high height without using the CSS table property or javascript?

PS. There is no reason not to use table property, I just want to know if theres any alternative.

<div class="wrap">
    <div class="left">less content</div>
    <div class="right">more content</div>
</div>

CSS:

.wrap{
    overflow: hidden;
    background: green;
    width: 100px;
    margin: 30px 100px;
}
.left{
    background: yellow;
    width: 50px;  
    float:left;
    overflow: hidden;
}
.right{
    background: brown;
    width: 50px;
    float:left;  
    overflow: hidden;    
}

JSFiddle:
http://jsfiddle.net/Vv2Ue/

  • 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-14T01:48:50+00:00Added an answer on June 14, 2026 at 1:48 am

    I just tackled this issue today. Checkout the following resource: http://www.vanseodesign.com/css/equal-height-columns/

    I like the last suggestion, which basically creates the illusion of equal heights.

    Html

    <div id="container-outer">
        <div id="container-inner">
    
            <div id="sidebar">
                <p>Sidebar</p>
            </div>
    
            <div id="content">
                <p>Main content</p>
            </div>
    
        </div>
    </div>
    

    CSS

    #container-outer {
            float:left;
            overflow: hidden;
            background: #eee;
        }
    
        #container-inner {
            float:left;
            background: #555;
            position: relative;
            right:75%;
        }
    
        #sidebar {
            float: left;
            width: 25%;
            position: relative;
            left: 75%;
        }
    
        #content {
            float: left;
            width: 75%;
            position: relative;
            left: 75%   
        }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following code: <body> <div id=container style=position:absolute; left:0px; top:0px; z-index:1;> <div id=div1
I have the following css code: #Layer3 { position:absolute; width: 89%; height: 40%; left:
I have the following code written in both C++ and C# int i=0; ++i
I have a login page using jQuery Mobile which contains the following code: <div
I have the following code: <HTML> <head> <style>div{border:dashed 1px silver}</style> </head> <BODY style=background: #fff;>
The following code blends both DIVs together instead of displaying them vertically, one after
I have the following lines of code: if(std::binary_search(face_verts.begin(), face_verts.end(), left_right_vert[0]) && std::binary_search(face_verts.begin(), face_verts.end(), left_right_vert[1]))
I have following code which works fine in firefox and ie 8, but in
I have the following code, and the javascript console in chrome says Can't read
The following code does the trick for showing two divs on the same line

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.