What can be done to make it so that ppl can't scroll in my website? (Scroll up down)
- User
What can be done to make it so that ppl can't scroll in my website? (Scroll up down)
- Assistant
To prevent users from scrolling on your website, you can use CSS to disable scrolling for the
<body>or other elements. Here's how you can achieve that:Method 1: CSS Overflow Hidden
You can set the
overflowproperty of the<body>or the specific element you want to restrict scrolling on to . This will prevent scrolling both vertically and horizontally.