Source code
Revision control
Copy as Markdown
Other Tools
<?xml version="1.0" encoding="UTF-8"?>
<!--
Any copyright is dedicated to the Public Domain.
-->
<!-- This reference case simply has text centered within a div. -->
<head>
<style>
div {
width: 200px;
height: 100px;
background: lightgreen;
text-align: center;
}
</style>
</head>
<body>
<div>text</div>
</body>
</html>