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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T09:49:23+00:00 2026-05-31T09:49:23+00:00

I having a hard time with my CSS min-height, I have two divs and

  • 0

I having a hard time with my CSS min-height, I have two divs and they are side by said, if one of them expands, I would like the other to expand http://www.willruppelglass.com/

As you can see the leftSideBar stops expanding at its min-height and the content div is expanded past its min-height.

CSS

.leftSideBar{
    background:url(../images/leftSide.jpg) repeat-y;
    float:left;
    margin-top: -49px;
    min-height: 591px;
}
.contentWrapper{
    background-color:#ebebeb;
    width:1411px;
    margin:0 auto;
    position:relative;
}
.content{
    background:#FFF;
    width: 1100px;
    margin:0 auto;
    position:relative;
    min-height: 591px;
}

HTML

<div class="contentWrapper">
    <div class="content">
        <div class="leftSideBar">
            <img src="images/leftSideTop.jpg" width="170" height="78" border="0" />
        </div><!--leftSideBar-->
    </div><!--content-->
</div><!--contentWrapper-->
  • 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-31T09:49:25+00:00Added an answer on May 31, 2026 at 9:49 am

    The reason this is happening is because the content in the content div is pushing past the minimum height but the left nav not actually having content has no reason to get bigger.

    My suggestion, even though it is not strictly CSS, I would use a simple piece of jQuery (because I noticed you are already using it) that will dynamically adjust the CSS property of the left div to match the right div. The jQuery version is here:

    var div_height = $("#content").height();
    $(".leftsidebar").css("height":div_height);
    

    Please note that I have used an ID on the content that doesn’t exist in your existing code so you will need to assign an ID to that div to work.

    I hope this helps.

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

Sidebar

Related Questions

I having hard time understanding importance and benefits of Annotations and so have two
Having a hard time figuring out the best way to do this... I have
im having hard time with this one, i want to create folder with write
I'm having a hard time with a simple css snippet for footer text. The
i am having hard time to fix my problem on VirtualStringTree. I have NodeData
I'm having hard time wrapping my head around this. I have an array called
I'm new to Django, and i'm having hard time including css styles in a
In my code, I am having hard time to wrap text in last two
I'm just getting familiarized with CSS, however I am having a hard time figuring
Hehe I'm having hard time on choosing the question title. But let me explain

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.