<!-- CSS:Basics snippet 8. -->
<!-- Override the block and inline elements default display. -->

<!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" xml:lang="en" lang="en">
<!-- Code source: http://www.justfigures.co.uk/ -->
<!-- A resource for web developers using XHTML, CSS, JavaScript, PHP -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>View snippet page</title>
<style type="text/css">
/* display a block element as an inline element */
h1 {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 20px;
	color: #000000;
	background-color: #3399FF;
	display:inline;
	}
/* display an inline element as a block element */
a {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 16px;
	color: #000099;
	text-decoration:underline;
	background-color: #66FFFF;
	display:block;
	}
</style>
</head>
<body>
<h1>A block element can be displayed as an inline element.</h1>
<br />
<br />
<a href="#">Hyperlinks (anchors) can display as a block element</a>
<a href="#">As a block element</a><a href="#">As a block element</a>
<a href="#">As a block element</a><a href="#">As a block element</a>
</body>
</html>