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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T20:08:41+00:00 2026-05-23T20:08:41+00:00

I work on a website whose main content block is too wide to fit

  • 0

I work on a website whose main content block is too wide to fit fully inside the smaller resolution screens.

The content is centered in the middle of the screen.

I need a horizontal scrollbar to appear when the content doesn’t fit inside the screen.

I force the horizontal scrollbar to appear with a div:

<div id="stretcher" style="width:1200px; min-width:1200px; height:1px; position:absolute; margin:0 auto"></div>

The problem: if I initially open the website in a large resolution screen (or wider window), and then make the browser window narrower, the scrollbar appears just where it’s supposed to. However – if I continue making the window narrower, the scrollbar handle stays at the left side, and scrolling further to the left becomes impossible. Also, If the browser window is initially smaller than the content, the scrollbar appears all the way to the left, and I can’t scroll more to the left to reveal the left side of the content that is hidden.

The question: how can I force the scroller to the middle, so that I can scroll left to reveal the hidden part of the content?

I would be grateful for your advice!

  • 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-23T20:08:44+00:00Added an answer on May 23, 2026 at 8:08 pm

    JSFiddle of my demo: http://jsfiddle.net/Y9DCs/

    From what I can see, right now you have a 2 column layout:

    On the left is your “access” panel that contains your menu. On the right is your main content area.

    I think you may be better served to have a main container with 3 sections:

    |----------------wrapper---------------------|
    |         |                      |           |
    |         |                      |           |
    |         |                      |           |
    |         |                      |           |
    |         |                      |           |
    |         |                      |           |
    |  Menu   |       Content        |   Dummy   |
    |         |                      |           |
    |         |                      |           |
    |         |                      |           |
    |         |                      |           |
    |         |                      |           |
    |         |                      |           |
    |--------------------------------------------|
    

    You can then size the width of wrapper as Content + (2 * Menu), and give it margin: 0 auto;

    Menu and Dummy would be the same width, except dummy would just be a div with no content.

    This will effectively size the whole area as centered on the screen with the menu appearing to hang off the left side of Content.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm building a content website whose basic elements are not just plain text but
I'm working on a website whose main purpose is to be accessed from mobile
When I load the frontpage of the website I work for in IE it
I have to ensure the security of a asp.net website at work. They asked
Any idea on how to get my asp.net mvc website to work on a
Right now I'm trying desperately to get @font-face to work in my website. This
I recently moved to Visual Studio 2010 and upgraded my website to work with
I work for a large website. Our marketing department asks us to add ever
I work for a small website company (couple of programmers, couple of designers). Currently
I work on a database driven website. Most pages' titles are the names of

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.