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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T22:49:05+00:00 2026-06-09T22:49:05+00:00

I am having problems working on a project for school, what we are doing

  • 0

I am having problems working on a project for school, what we are doing is creating div sections. And within each div section I color coded them to see them more clear. Though in my leftnav div it will not branch down to the bottom to the footer. JSFIDDLE here- http://jsfiddle.net/rM8zw/

if someone could help me fix this and explain what i did wrong? I have three container divs, so that some of my inherits would work correctly. Container for leftnav and bodyline, container for main site, container for BmiddleLeft and Right. Thanks guy ahead of time.

I am trying to figure out why my #leftnav will not complete its height to my bodyline so it is even.

heres the CSS-

#container{
    width:980px;
    height:auto !important;
    height:900px;
    min-height:900px;
    padding-top:20px;
    padding-bottom:20px;
    margin: 0 auto; 
    boder: solid 0px;
    overflow:hidden;
}
#holder{
    width:980px;
    height:auto !important;
    height: 800px;
    min-height:800px;
    padding:0;
    margin:0 auto; 
    border: solid 0px;
    overflow:hidden;
    background:#FFF;
}
#header{
    width:980px;
    height:100px;
    border:solid 0px;
    margin:0 auto;
    padding:0;
    background:#FF0000;
}
#navbar{
    width:980px;
    height:40px;
    border:solid 0px;
    margin:0 auto;
    padding:0;
    background:#c0c0c0;
}
#bodycontainer{
     width:980px;
     height:800px;
     min-height:800px;
     height:auto !important;
     overflow:hidden;
}
#leftnav{
     float:left;
     width:200px;
     height:1200px;
     min-height:1200px;
     height:auto !important;
     padding:0;
     overflow:hidden;
}
#bodyline{
     float:right;
     width:780px;
     height:800px;
     min-height:800px;
     height:auto !important;
     background:#00FF40;
     overflow:hidden;
}

heres the HTML I am currently using-

<div id="container">
    <div id="holder">
    <div id="header">
    </div>
    <div id="navbar">
    </div>
    <div id="bodycontainer">
        <div id="leftnav">
        </div>
        <div id="bodyline">
            <div id="Btop">
            </div>
            <div id="BmiddleCont">
                <div id="BmiddleLeft">
                hello
                <br />
                </div>
                <div id="BmiddleRight">
                </div>
            </div>
            <div id="Bbottom">
            </div>
            <div id="BbottomLast">
            </div>
            </div>
        </div>
    </div>
    <div id="footer">
    </div>
</div>

hope this is a little better.

  • 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-09T22:49:07+00:00Added an answer on June 9, 2026 at 10:49 pm

    If you set the min-height as inherit, then it will go up until it finds a value. In this case, up to #container, which has it set to 900px. That’s why the height of your #leftnav is only 900px. min-height overrides height. Furthermore, if you take min-height out and keep height: auto, then you have no restrictions imposed on the height, so the height of your leftnav becomes the height of its content. Which is 0 in this case.

    There are a few ways in which you could set its height. The easiest one of all, since you are explicitly setting heights on all the elements on the right, would be to add them up and then explicitly set that resulted value as the height of your leftnav.

    If those values are just dummy values and the heights of the elements on the right will depend on the height of the content in them, then you have a couple of options:

    1. Actually setting the height of your #leftnav to the height of its parent (#bodycontainer). You do that by setting its position to absolute (and don’t forget to set position: relative on the parent) and its top, left, bottom values to 0. In this case, you’ll also have to set the padding-left of its parent (#bodycontainer) to the same value as #leftnav‘s width (200px here). Or set left-margin: 200px; on its sibling (#bodyline) to avoid having to modify the width of #bodycontainer or to set its box-sizing to border-box. – DEMO

    2. Make it look like it has the same height.

    a) The easy method. Use a gradient with color stops as the background of the parent (#bodycontainer) – DEMO // demo without redundant code

    background: linear-gradient(left, #FF00FF 200px, transparent 200px);
    

    Keep two things in mind:

    • one, you’ll have to add prefixes, as gradients are not yet supported unprefixed
    • two, this won’t work in IE9 or older

    (see caniuse.com for more details)

    b) The best compatibility method (works in IE8+). Use a pseudo-element on the parent, #bodycontainer, position it absolutely, set its top, left and bottom values to 0, give it #leftnav‘s width and the desired background. – DEMO // demo without redundant code

    #bodycontainer:before {
        position: absolute;
        top: 0; bottom: 0; left: 0;
        width: 200px;
        background: #f0f;
        content:'';
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm having problems with compiling a project I'm working on. Everything else works just
I am currently working on a project and I am having problems with the
I'm working on a face recognition project and I am having problems when projecting
I am working on a php project and I am having problems with including
I am having problems with linear programming solvers on a project I am working
I'm still working on my zoomable node-graph project. I'm currently having problems with what
I'm working on my first significant Sql Reporting Services project and am having problems
I'm having some problems with a project I'm doing using Google Maps. I have
I am working in a project using openframeworks and I've been having some problems
I am working on a windows form project and having some problem with UserControl

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.