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

The Archive Base Latest Questions

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

What I would like is for a two column CSS layout, with a fixed

  • 0

What I would like is for a two column CSS layout, with a fixed sidebar (on the right), let’s say 300px wide, and for a fluid left hand column that would expand to fit the screen size and height and THEN to provide a vertical scroll bar on the left hand column if the content requires it.

<html>
<head>
<style type="text/css">
body {margin:0px;}
#outer { 
  overflow: hidden;
  width: 100%;
  height:608px; 
  background: #ddd; 
} 

#inner1 { 
  float: right;/* Make this div as wide as its contents */ 
  width:300px;
  padding:10px;
  background: #fdd; 
} 

#inner2 { 
  overflow: hidden;/* Make this div take up the rest of the horizontal space, and no more */ 
  padding:10px;
  background: #ddf; 

#divScroll { 
  overflow: scroll; 
  height:600px; 
} 
</style>
</head>
<body>

<div id="outer"> 
<div id="inner1"> 
    inner div 1. Some text... 
</div> 
<div id="inner2">
<div id="divScroll">

    inner div 2... <br />
    inner div 3... <br />
    inner div 2... <br />

.
.
    enough text here to make it scroll !
.
.
    inner div 2... <br />
    inner div 2... <br />
    inner div 2... <br />
    inner div 2... <br />
    </div>
</div> 
</div> 
</body>
</html>
  • 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-27T15:43:46+00:00Added an answer on May 27, 2026 at 3:43 pm

    Not sure if this is what you mean from but I think you want something like this:

    http://jsfiddle.net/spacebeers/s8uLG/3/

    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>
            <p>Content 1</p>
       </div>
       <div class="col2">
            <p>Content 2</p>
            <p>Content 2</p>
            <p>Content 2</p>
            <p>Content 2</p>
       </div>
    </div>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like to use CSS to present a two-column layout. The markup I
I have a MasterPage that is two column layout, left column menu, right column
All, What I would like is to have a two column layout with a
I would like some help with my three column layout. I am not satisfied
I like the layout that Facebook Timeline has with the staggered two column posts.
I'm developing a 3-column website using a layout like this: <div id='left' style='left: 0;
I would like to have a column in my DB accessible via two column
I would like to split one column into two within at data frame based
I have achieved nice a two column layout form with the help of CSS
I would like to know if there is anyway I can compare two columns

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.