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

  • Home
  • SEARCH
  • 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 7675503
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T16:58:43+00:00 2026-05-31T16:58:43+00:00

I would like a two-column web page with the right panel fixed-width and the

  • 0

I would like a two-column web page with the right panel fixed-width and the left panel taking up the remaining space. The right panel should not scroll, but the left panel should. The scroll bar must be in between the left and right columns (in other words, the left div needs its own scroll bar rather than the whole page scrolling).

I currently have the HTML:

<div id="l"><!-- Lots of text so it will scroll --></div>
<div id="r">Right panel</div>

and CSS:

body {
  margin: 0;
  padding: 0;
}

#l {
  padding: 10px 360px 10px 10px;
  background-color: #808080;
  text-align: center;
  overflow-y: scroll;
}

#r {
  position: fixed;
  top: 0;
  right: 0;
  width: 350px;
  height: 100%;
  background-color: #f5f5f5;
  border-left: 1px solid #353535;
  padding: 10px;
}

At the moment, the scroll bar appears on the right of the whole page, rather than just the left div scrolling. Please help! (You can play with this jsFiddle.)

  • 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-31T16:58:45+00:00Added an answer on May 31, 2026 at 4:58 pm

    You can specify height for #main wrapper and set overflow: hidden; :
    http://jsfiddle.net/DPZha/8/

    • 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 ASP.NET GridView in my web app and would like to bind two
I would like to split one column into two within at data frame based
I would like to know if there is anyway I can compare two columns
I would like to iterate the rows and columns separately on a two dimensional
I have several A4 PDF documents which I would like (two into one) glue
I would like my two applications to be able to send strings to each
I would like to provide two different versions of my iPhone app on the
I would like to remove two files from a folder at the conclusion of
I would like to compare two dates in javascript. I have been doing some

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.