I'm creating a website as a project and have run into a problem regarding the header. Basically the header is meant to be set height at 50% of the browser window, however, it only seems be as big as the content inside the header (2 headings).
I've uploaded this website to here
The HTML
<header role="banner" id="banner">
<div class="not-fullscreen background bgheader1"" data-img-width="1600" data-img-height="1064">
<div class="content-a">
<div class="content-b">
<h1>Manchester Metropolitan University</h1>
<h2>Course Information</h2>
</div>
</div>
</div>
</header>
The CSS -
header {
min-height:50%;
height:50%;
width:100%;
}
.fullscreen,
.content-a {
width:100%;
min-height:100%;
}
.not-fullscreen,
.not-fullscreen .content-a,
.fullscreen.not-overflow,
.fullscreen.not-overflow .content-a {
height:100%;
overflow:hidden;
min-height:50%;
}
/* content centering styles */
.content-a {
display:table;
height:50%;
}
.content-b {
display:table-cell;
position:relative;
vertical-align:middle;
text-align:center;
}
The rest of the information can be extracted from the website Any help will be appreciated
Thanks.
EDIT - It has to work with bootstraps sticky footer / fixed nav. Although html / body height does fix it, it also messes the footer up.