I've been try to make my content stay centred at all time. I have the width centred with: text-aligned, but I can't figure out how to vertically centre my content. Here is the code for the element:
HTML:
<div class="content">
<img src="logo.png">
<h1>HELLOWORLD</h1>
<p class="lead">CREATED BY JOHN DOE</p>
<button class="btn">Signup</button>
</div>
CSS:
.content {
text-align: centre;
}
.content h1{
color: white;
font-family: NoveBold;
font-size: 150px;
line-height:94%
}
.content p{
color: white;
font-family: NoveLight;
font-size: 30px;
}
.content img{
}
.content btn {
}
Does anyone know a fix on how to automatically vertically align this content so its centred on the page?