Scrolling Text Blocks

The overflow property can be used to create scrollbars on a block-level element, allowing the placement of large amounts of text within a confined space. The following values are available:

The CSS code for this page looks like this:

body
{
}
pre
{
	height:10em;
	width:20em;
	overflow:auto;
	background-color:#eee9dd;
	border-style:outset;
	border-color:green;
	padding:5px;
}
a
{
	text-decoration:none;
	color:blue;
}
a:link
{
}
a:visited
{
	color:purple;
}
a:hover
{
	text-decoration:underline;
}
a:active, a:focus
{
	color:green;
}

The code box above is created using the </pre> tag.

Note that the code box also has its border-style property set to outset. These values are available: