0 votes
104 views
in HTML by (3.5k points)
edited

How to add a scroll bar in HTML?

1 Answer

0 votes
by (3.5k points)
edited

<!DOCTYPE html>

<html>

<head>

<style>

div.ex1 {

  background-color: lightblue;

  width: 110px;

  height: 110px;

  overflow: scroll;

}

  

div.ex2 {

  background-color: lightblue;

  width: 110px;

  height: 110px;

  overflow: hidden;

}

  

div.ex3 {

  background-color: lightblue;

  width: 110px;

  height: 110px;

  overflow: auto;

}

  

div.ex4 {

  background-color: lightblue;

  width: 110px;

  height: 110px;

  overflow: visible;

}

</style>

</head>

<body>

  

<h1>Welcome to great learning</h1>

  

  

  

<h2>scroll:</h2>

<div class="ex1">Great Learning Academy is an initiative taken by Great Learning, where we are offering 1000+ hours of content across 80+ courses in Data Science, Machine Learning, Artificial Intelligence, Cloud Computing, Business, Digital Marketing, Big Data and many more for free.</div>

</body>

</html>

Related questions

0 votes
1 answer 74 views
asked Jun 12, 2023 in HTML by radhe (2.2k points)
0 votes
1 answer 118 views
asked Jun 12, 2023 in HTML by radhe (2.2k points)
0 votes
1 answer 87 views
asked Aug 19, 2022 in HTML by codelikepro (3.5k points)
0 votes
1 answer 138 views
asked Aug 19, 2022 in HTML by codelikepro (3.5k points)
0 votes
1 answer 103 views
asked Aug 19, 2022 in HTML by codelikepro (3.5k points)
0 votes
1 answer 89 views
asked Aug 19, 2022 in HTML by codelikepro (3.5k points)

Doubtly is an online community for engineering students, offering:

  • Free viva questions PDFs
  • Previous year question papers (PYQs)
  • Academic doubt solutions
  • Expert-guided solutions

Get the pro version for free by logging in!

5.7k questions

5.1k answers

108 comments

537 users

...