<html>
<head>
<style>
.parent {
height: 100vh;
display: grid;
place-items: center;
}
</style>
</head>
<body>
<div class="parent">
<h1>Centered content</h1>
</div>
</body>
</html>