how to make a div scrollable
snippet in javascript

div scrollable content

user6198

div{
	overflow : scroll;
}

how to make a div scrollable

user6021

<div id="" style="overflow:scroll; height:400px;">

scroll in div

user5448


div.ex1 {
  overflow: scroll;
  /*The overflow is clipped, but a scroll-bar is added to see the rest of the content*/
}

div.ex2 {
  overflow: hidden;
  /*The overflow is clipped, and the rest of the content will be invisible*/
}

div.ex3 {
  overflow: auto; 
  /*If overflow is clipped, a scroll-bar should be added to see the rest of the content*/
}

div.ex4 {
  overflow: visible;
  /*The overflow is not clipped. It renders outside the element's box. This is default*/
}
  
 

scrollbar in html div

user6446

overflow in html