JSFiddle - React, Tailwind, and code Playground
HTML
<div class="body-container">
<header id="header">
<div id="header-image-container">
<img src="http://lorempixel.com/g/400/400/" alt="SHC Logo" id="header-image" />
</div>
<div id="header-text-container">
<div id="header-text-container-top">
<p id="text-SACRED-HEART-COLLEGE">SACRED HEART COLLEGE</p>
<p id="text-A-Vibrant-Life">A Vibrant Life</p>
</div>
<br/>
<div id="header-text-container-bottom">
<p id="text-KYNETON">KYNETON</p>
</div>
</div>
<div style="clear:both"></div>
</header>
</div>
CSS
/*CSS - main.css created by Oliver Murfett and Caelan Grgurovic - August 2015*/
html, body {
width: 100%;
margin: 0px;
padding: 0px;
height: 100%;
min-height: 100%;
}
* {
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
html {
background-color: rgb(152, 198, 234);
}
.body-container {
background-color: white;
height: 100%;
min-height: 100%;
margin: auto;
}
/*To handle to container width*/
@media screen and (min-width: 700px) and (orientation: landscape) {
.body-container {
width: 85%;
}
}
@media screen and (max-width: 700px) {
.body-container {
width: 100%;
}
}
#header {
width: 100%;
border-bottom: 5px solid rgb(194, 62, 65);
padding: 10px;
margin: 0px;
}
p {
margin: 0px;
padding: 0px;
}
#header-image-container {
width: 10%;
float: left;
}
#header-image {
width: 100%;
}
#header-text-container {
float: left;
height: 100%;
min-height: 100%;
width: 90%;
color: rgb(0, 51, 84);
}
#header-text-container p {
display: inline;
}
#header-text-container-top {
height: 50%;
min-height: 50%;
display: block;
}
#header-text-container-bottom;
{
height: 50%;
min-height: 50%;
}
#text-SACRED-HEART-COLLEGE {
float:left;
font-size: 25px;
font-style:bold;
text-shadow: 0px 0px 1px;
}
#text-A-Vibrant-Life {
float:right;
font-size: 20px;
font-family: sans-serif;
}
#text-KYNETON {
width: 100%;
float: left;
color: rgb(141, 0, 0);
}