/* HTML */
<header role="heading">
<div class="logo">
<h1><a href="/">this is the banner</a></h1>
</div>
<header>
/* CSS */
header
{
background-color: rgb(255, 165, 0);
height: 160px;
width: 100%;
}
header .logo
{
margin: 30px auto;
width: 980px;
}
My expectation was for the .logo
element to be centered inside the header
, but it seems to be pulling the header down by 30px from the top.
I attempted to make the header
position:relative, but that caused the centering (margin: 30px auto) not to function correctly.
If anyone has any advice on how to resolve this issue, I would greatly appreciate it!