This is a snippet from a react component Im struggling with.
I want the profile img placeholder, and the div next to it, containing an a attached to an H1 and H2, to align to the top.
Right now, they align to neither top, bottom, middle or anything. and I can’t seem to get it right.
The head-intro div, just randomly starts ~120px below the top and I cant figure it out.
Halp!
I have borders on everything, so I can see without using dev tools.
<style>
* {
border: 1px solid red;
}
.header {
display: block;
margin: 0 auto;
text-align: center;
}
.profileimg{
display: inline-block;
border-radius:50%;
height:150px;
width:150px;
/* background-image: url(''); */
/* background-position:center; */
/* position:absolute; */
z-index: 12;
margin:0 auto;
margin-top:0px;
padding: 10px;
box-shadow: inset 5px 0px 15px 5px rgba(0,0,0,.5);
}
.head-intro {
display: inline-block;
margin: 0 auto;
padding: 4px;
}
</style>
<div class="header">
<div class="profileimg">
</div>
<div class="head-intro">
<h1> <a href="https://www.facebook.com/ThomasOfAurelius">Thomas Aurelius</a></h1>
<h2>Subtitle</h2>
</div>
</div>