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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T09:21:16+00:00 2026-06-09T09:21:16+00:00

I have two divs in my page: leftpart and rightpart which has the following

  • 0

I have two divs in my page: leftpart and rightpart which has the following css:

.leftpart{ 
       width:280px; 
       background:#0054a6; 
       color:#fff; 
       padding-top:40px; 
       height:100%; 
       min-height:637px; 
       box-shadow:3px 3px 10px #bebebe; 
       position:relative;
}
.rightpart{ 
       width:75%; 
       padding-left:10px;
}

I want this sidebar(leftpart) till the end of my page(till the bottom). I’ve set the height to 100% but when I minimize the browser it shows the white space below the bar instead of showing blue background. I mean it does not take its height as 100%. How can I get that?

  • 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-09T09:21:17+00:00Added an answer on June 9, 2026 at 9:21 am

    For a full length sidebar your best bet is probably the old faux columns method. You could do this in CSS but this is probably easier for you.

    Put basically you want an image with your column background’s in a thin long strip. You then add this as a background image to your parent div and it acts as pretend full height columns.

    eg.

    .container {
        background: url(your_image) repeat-y left top;
    }
    
    <div class="container">
        <div class="sidebar">SIDEBAR</div>
        <div class="content">CONTENT</div>
    </div>
    

    You can read more about it here – http://www.alistapart.com/articles/fauxcolumns/

    If you want to try this in CSS you could try the negative margins trick.

    You set your container up with overflow set to hidden, then on each div add negative margin-bottom and equal positive padding-bottom.

    #container { overflow: hidden; }
    #container div { float: left; background: #ccc; width: 200px; margin-bottom: -2000px; padding-bottom: 2000px; }
    #container .col2 { background: #eee; }
    
    <div id="container">
       <div>
            SIDEBAR
       </div>
       <div class="col2">
            CONTENT
       </div>
    </div>
    
    • 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 on a page. each has several dijits. i have atoggle
If I have two divs and one will change width each time the page
I have two divs on a page. a grid-container that takes a background and
In my page I have two divs called context and translation and in test1.php
On my web page I have two divs, A and B: The DOM looks
I have a simple page layout with two divs--one on top, and one on
I have two divs which should looks like one figure. The problem is with
I have following divs on my page <div id=rpttimeline>div 1</div> <div id=rptareaview>div 2</div> <div
Suppose I have two DIVs on my page. <body> <div id=d1></div> <div id=d2></div> </body>

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.