Trying to vertically & horizontally center the hgroup inside of the background image. Maybe I'm going about placing the image in the wrong manner. As you can see i've tried a variety of different methods. margin: auto, vertical-align: center, etc. are all not working.
I'm also trying to center the logo in the middle of the page, but still flush against the top.
Any help is much appreciated!
header img {
margin: 0 auto;
height: 167px;
width: 177px;
}
.welcome {
height: 650px;
background: url(images/twotrees.jpg);
background-size: 100% auto;
background-repeat: no-repeat;
vertical-align: middle;
}
.welcome hgroup {
vertical-align: middle;
}
.welcome h1 {
color: #fff;
font-size: 64px;
vertical-align: middle;
}
.welcome h2 {
font-family: kepler std;
font-size: 48px;
color: #fff;
font-style: italic;
font-weight: normal;
text-align: center;
text-transform: none;
vertical-align: middle;
}
<body>
<header>
<a href="/index.html"><img src="images/ttc_logo.png" width="177px" height="167px" alt="Two Trees Creative Logo"></a>
<nav>
<ul>
<li><a href="index.html">Home</a> |</li>
<li><a href="about.html">About</a> |</li>
<li><a href="portfolio.html">Portfolio</a> |</li>
<li><a href="contact.html">Contact</a></li>
</ul>
</nav>
<div class="welcome">
<hgroup>
<h1>Designing Your World</h1>
<h2>One pixel at a time.</h2>
</hgroup>
</div>
</header>