no scroll css code example
Example 1: css no scroll
<!DOCTYPE html>
<html>
<head>
<style>
body {
height: 5000px;
width: 5000px;
overflow: hidden;
}
</style>
</head>
<body>
<h2>Hide scrollbars</h2>
<p>This example will hide the scrollbars (and the functionality - it is not possible to scroll inside the page).</p>
<p>Try to remove <strong>overflow: hidden;</strong> to see the effect.</p>
</body>
</html>
Example 2: css stop scrollbar
html {
scrollbar-width: none;
-ms-overflow-style: none;
}
html::-webkit-scrollbar {
width: 0px;
}
Example 3: overflow css
div {
overflow-x: hidden;
overflow-y: auto;
}