how to have no scroll for div code example
Example: css no scroll
<!DOCTYPE html>
<html>
<head>
<style>
body {
height: 5000px; /* Make this site really long */
width: 5000px; /* Make this site really wide */
overflow: hidden; /* Hide scrollbars */
}
</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>