I have scoured numerous resources in search of a solution to my problem, but nothing seems to work for me. I have created a simple portfolio site where I want the word 'Developer' to be the first thing visible upon loading, followed by the portfolio as you scroll down.
I have added top padding to my portfolio header to fill the screen, but I can't seem to center the word 'Developer' within it. Being new to this, I must have made a mistake somewhere!
HTML:
<header id="hero">
<div id="hero_text">Developer.</div>
<img class="arrow" src="Images/lake_tahoe_img/arrow.svg" alt="Down arrow"></a>
<a href="index.html" id="logo">
<h1>Rob Wood</h1>
<h2>Front-end Developer</h2>
</a>
<nav>
<ul>
<li><a href="index.html" class="selected">Portfolio</a></li>
<li><a href="about.html">About</a></li>
<li><a href="contact.html">Contact</a></li>
</ul>
</nav>
</header>
CSS:
#hero {
padding-top: 800px;
z-index: -2;
}
#hero_text {
position: fixed;
margin-left: auto;
margin-right: auto;
top: 35%;
color: white;
font-size: 9em;
font-family: 'Open Sans', sans-serif;
font-weight: bold;
}
.arrow {
width: 50px;
top: 70%;
position: center;
padding-left: 50%;
position: fixed;
}