The overflow property
<?xml version="1.0" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title>The overflow property</title>
<style type='text/css'>
div {max-height:75px;
max-width:250px;
padding:5px;
margin:10px;
border:1px solid #000000;}
div.one {overflow:hidden;}
div.two {overflow:scroll;}
</style>
</head>
<body>
<div class="one">Sometimes the content of a box will go over the edges of the box. There are a number of reasons why this might happen, including the content being larger than the box, or a box having negative margins. In such cases the overflow property can be used with a value of hidden or scroll.</div>
<div class="two">Sometimes the content of a box will go over the edges of the box. There are a number of reasons why this might happen, including the content being larger than the box, or a box having negative margins. In such cases the overflow property can be used with a value of hidden or scroll.</div>
</body>
</html>
Related examples in the same category