Scrollbar has always been an issue to HTML developers. here is an example to demonstrate how to use overflow attribute.

.div{height:100px; width:100px; font-size:10px; border:solid 1px black; }
.scroll{ overflow:auto;}
.hidden{overflow:hidden;}
.scroll{overflow:scroll;}

Demonstration

Advertisements