Here is one simple way to center content on a HTML page. This method is using the CSS text-align and vertical-align properties.
<!DOCTYPE html>
<html>
<head>
<title>Center V2</title>
<link href="https://fonts.googleapis.com/css?family=Lato:100" rel="stylesheet" type="text/css">
<style>
html, body {
height: 100%;
}
body {
margin: 0;
padding: 0;
width: 100%;
display: table;
font-weight: 100;
font-family: 'Lato';
}
.container {
text-align: center;
display: table-cell;
vertical-align: middle;
}
.content {
text-align: center;
display: inline-block;
}
.title {
font-size: 60px;
}
.subtitle {
font-size: 30px;
}
</style>
</head>
<body>
<div class="container">
<div class="content">
<div class="title">center-version-2.html</div>
<div class="subtitle">Display text @ center of page</div>
</div>
</div>
</body>
</html>