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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T10:05:31+00:00 2026-05-16T10:05:31+00:00

How do i TOTALLY prevent scrolling on my website even if there is overflow.

  • 0

How do i TOTALLY prevent scrolling on my website even if there is overflow. I just don’t want to hide the scrollbars because you usually can just use the mousewheel or page down anyway. I want them to be both hidden and locked.

The problem is that i have this structure(with real css and html of course)

<outerdiv height="100%">
  <innerdiv height="100%">
    <contentdiv height="ALOT">content</contentdiv>
  </innerdiv>
<outerdiv>

I only want innerdiv to scroll its children but sometimes you accidentally focus the outerdiv and when you start scrolling then the innerdiv will scroll out of view (because it’s a child of the outerdiv) and you cant view the actual content anymore.

The initial layout will give both outerdiv and innerdiv the height of the browser but when looking at content to scroll the outerdiv seems to look all the way to the children of innerdiv which makes no sense as this already scrolls by itself.

  • 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-16T10:05:31+00:00Added an answer on May 16, 2026 at 10:05 am

    If you use whole screen anyways, then why not just use position:absolute (with top, left, right and left set to 0) and overflow:auto with the innerdiv?

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

Sidebar

Related Questions

I've jusy finished a login script and noticed that even after I log out
I'm trying to prevent a user from disabling style.(I HAVE A GOOD REASON TO
I might be going about this in totally the wrong way but this is
Update: There is no problem here. Turns out I was re-adding the animation every
I'm pretty new to Javascript, as my SO profile will attest. I've just been
im trying to create something in jquery but it just keeps bugging up. here
I have used parameterized query number of times I know it helps in preventing
I'm using the CodeIgniter PHP framework. I use JS to dynamically load a PHP
I have a CGI script for which I've successfully set a cookie (which I
We generate lots of JSON objects using Spring and its built-in MappingJacksonHttpMessageConverter . All

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.