Source code

Revision control

Copy as Markdown

Other Tools

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<head>
<title>CSS Test: Text-align set to 'center'</title>
<link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
<meta name="assert" content="The 'text-align' property set to 'center' on a block element aligns the text in the center." />
<style type="text/css">
div
{
border: 1px solid blue;
text-align: center;
}
</style>
</head>
<body>
<p>Test passes if the words "Filler Text" below are aligned in the center, inside the blue box.</p>
<div>Filler Text</div>
</body>
</html>