Source Code: (back to article)
<!DOCTYPE html>
<html>
<head>
<title>Title of the document</title>
<style>
.container {
display: table;
height: 200px;
}
.inner {
display: table-cell;
vertical-align: middle;
background-color: #aef5b8;
}
</style>
</head>
<body>
<div class="container">
<div class="inner">Text</div>
</div>
</body>
</html>