<!DOCTYPE html>
<html lang="en-US">
<head>
<style>
div{
width:100px;
height:100px;
font-size:17px;
padding:12px;
border:1px solid #8c8c8c;
margin:10px;
}
div:nth-child(2){
overflow:scroll;
}
div:nth-child(4){
overflow:hidden;
}
div:nth-child(6){
overflow:auto;
}
div:nth-child(8){
overflow:visible;
}
</style>
</head>
<body>
<h2>overflow: scroll;</h2>
<div>
This div contains lots of text, but the height of this div is 100px, whereas, width of this div is 200px.
</div>
<h2>overflow: hidden;</h2>
<div>
This div contains lots of text, but the height of this div is 100px, whereas, width of this div is 200px.
</div>
<h2>overflow: auto;</h2>
<div>
This div contains lots of text, but the height of this div is 100px, whereas, width of this div is 200px.
</div>
<h2>overflow: visible;</h2>
<div>
This div contains lots of text, but the height of this div is 100px, whereas, width of this div is 200px.
</div> </body>
</html>