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 style="float:right;" id = "text-A-Vibrant-Life">A Vibrant Life</p>
</div>
<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: 1px solid red;
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:80%;
}
#header-text-container p{
display: inline;
}
#header-text-container-top {
height: 80%;
min-height: 50%;
display: block;
}
#header-text-container-bottom; {
height: 50%;
min-height: 50%;
}
#header div{padding:5px;}