you can as well either use text-align:justify, display:table or display:flex; http://codepen.io/anon/pen/IwbBs
* {
margin: 0px;
padding: 0px;
font-size: 100%;
font-weight: inherit;
font-family: inherit;
}
body {
font-weight: 300;
font-family: 'Open Sans', sans-serif;
color: white;
}
header {
width: 100%;
padding: 10px;
background: black;
}
header h1 {
display: inline-block;
text-align:left;
}
header h2 {
display: inline-block;
text-align:right;
}
/* justify */
.justify {
text-align:justify;
line-height:0px;
}
.justify * {
line-height:1.2em;
}
.justify:after {
content:'';
width:99%;/* add an extra line to trigger justify on .. first-line */
display:inline-block;
vertical-align:top;
}
/* flex */
.flex {
display:flex;
justify-content:space-between;
}
/* table */
.table {
display:table;
}
.table h1, .table h2 {
display:table-cell;
}
... Float has already been told :)