<!DOCTYPE html>
<html>
<head>
<title>Title of the document</title>
<style>
p {
margin: 0;
}
#outer {
border: 2px solid #5c34eb;
height: 100px;
line-height: 100px;
}
</style>
</head>
<body>
<h1>Vertically aligned element</h1>
<div id="outer">
<p>Lorem Ipsum</p>
</div>
</body>
</html>