We would like to know how to overflow: auto;.
<!DOCTYPE html>
<html>
<head>
<style type='text/css'>
#resize {<!--from ww w . java2s. c om-->
background: #444;
color: white;
position: absolute;
top: 50px;
left: 50px;
right: 50px;
bottom: 50px;
overflow: auto;
}
p {
line-height: 2;
margin: 0;
}
</style>
</head>
<body>
<div id="resize">
<p>drag top of this frame down to see scroll activate</p>
<p>content</p>
<p>content</p>
<p>content</p>
</div>
</body>
</html>
The code above is rendered as follows: