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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T05:07:45+00:00 2026-06-12T05:07:45+00:00

I have been struggling with this problem for a long time now, and although

  • 0

I have been struggling with this problem for a long time now, and although I have found a number of good solutions to parts of my problem, none of them seem to work combined, so I have decided to ask you.

Here is a scrn shot of the website:

https://i.stack.imgur.com/6C0k1.jpg

What I’m hoping to achieve is to have a scroll bar appear on the far right of the page when content overflows the blue container, the div that has all my content in it, not the far right of the div itself, like it would if I set the div to overflow: auto or overflow: scroll.

In other words, I would like the page to scroll, not my div.

The site essentially consist of a body background, a div for the menu and a div for the content. The code is pretty messy, so I have left it out, but if you need it, just leave a comment and I will add it right away.

Everything is supposed to be fixed as in remain like it is on the scrn shot, except for the content in the blue container to the right. I initially figured that setting everything except the container to position:fixed would work and trigger a scroll bar to appear for the page that could be used to scroll through the div, but it didn’t. This doesn’t work though, as any visible overflow in the container just ‘leaves’ the page; it doesn’t trigger a scroll bar.

As I’ve also pointed out in the scrn shot, the container-div has padding on the top and bottom and is also slightly transparent.

These two features seem to make things even more difficult. The padding, because setting overflow: visual makes content overflow, and thereby be visible, even through padding.
The transparency is an issue, since I can’t just cut out the padding and give it a z-index that’s higher than the content itself, in order to hide it; it will still be visible through it. The background image is set at a percentage or set to ‘cover’ (still figuring out which one works best), so cutting out the padding with the segment of the background image it covers, will not work either.

I hope I presented my problem and the issues clearly enough. If you have any questions or any feedback, please leave a comment.

Thank you in advance for any replies,
Magnus

NOTE: This is a repost of an early question that was trashed by someone who didn’t bother reading through it properly before rating it down. The question essentially died afterwards. I have tried to make things even more clear this time, so I’m sorry if I repeat myself. This is also the reason why my post is so long this time.

  • 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-12T05:07:47+00:00Added an answer on June 12, 2026 at 5:07 am

    Something like this?

    Demo: http://jsfiddle.net/6R7c2/

    HTML:

    <div id="top">Top</div>
    <div id="middle">
        <div>Content
        </div>
    </div>
    <div id="bottom">Bottom</div>
    

    CSS:

    html,body{
        width:100%;
        height:100%;
        margin:0;
    }
    #top,#bottom{
        height:10%;
        background:blue;
        color:white;
    }
    #middle{
        height:80%;
        overflow:auto;
    }
    
    #middle>div{
        height:10000px;
        border:25px solid red;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been struggling with this problem for quite a long time now. I
I have been struggling with this problem for a few days now and I
I've been struggling with this problem for a good 2 hours now and I
I have been struggling with the following problem for a long time. I have
I've been struggling with this for a long time now, and after a long
I've been struggling for quite a long time on this problem. This is a
I've been struggling a long time with this problem and I can't get it
I have been struggling with this problem for several weeks now and would really
I've been struggling with this for quite some time now, although I am pretty
I have been struggling with this problem for a while now, so any help

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.