xxxxxxxxxx
<style>
.scrollable-div {
width: 300px; /* Set the desired width for the div */
height: 200px; /* Set the desired height for the div */
overflow: auto; /* Add scrollbars to the div when necessary */
}
</style>
<div class="scrollable-div">
<!-- Content goes here -->
</div>
xxxxxxxxxx
<div id="" style="overflow:scroll; height:400px;">
Run code snippet
xxxxxxxxxx
<style>
.scrollable-div {
height: 200px; /* Set the desired height for the scrollable div */
overflow: auto; /* Enable scroll bars when the content of the div exceeds its height */
}
</style>
<div class="scrollable-div">
<!-- Insert your content here -->
</div>