È stato utile?

Domanda

How to hide scrollbars with CSS?

CSSWeb DevelopmentFront End Technology

To hide scrollbars with CSS, the code is as follows −

Example

 Live Demo

<!DOCTYPE html>
<html>
<head>
<style>
   body {
      height: 150vh;
      width: 200vw;
      overflow: hidden;
      font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
   }
   p {
      font-size: 40px;
      font-weight: 500;
   }
</style>
</head>
<body>
<h1>Hide scrollbars Example</h1>
<p>
Lorem ipsum dolor sit amet consectetur adipisicing elit. Quia expedita magnam enim culpa eum veniam obcaecati odit aperiam dolorem, libero nisi magni similique eveniet sequi? Laudantium ipsam dolorum recusandae ab molestiae animi saepe cumque delectus libero quaerat? Assumenda asperiores ea incidunt totam ipsa aperiam! Ex quo cupiditate incidunt vel accusamus!
</p>
</body>
</html>

Output

The above code will produce the following output −

raja
Published on 08-May-2020 18:04:00
Advertisements
È stato utile?
Non affiliato a Tutorialspoint
scroll top