I tried with many different css property including vertical-align: center, I even tried 100% height and 100% width, but no luck. It's been almost a hour.
Text align only on middle horizontal and top on vertical but I want my text in center(middle on vertical). Any suggestion?
Here is my HTML code:
*
{
margin: 0;
padding: 0;
}
body
{
background-color: black;
color: white;
}
.welcome-section
{
text-align: center;
margin: auto;
height: 100%;
}
<section id="welcome-section" class="welcome-section">
<h1>Poseidon</h1>
<p>Information Technology, Software Developer learner, and CTF Player.</p>
<p>Security is a top priority!</p>
</section>
Any help is appreciated!