JSFiddle - React, Tailwind, and code Playground

by Praveen Kumar Purushothaman

HTML

<div class="wrapper fullsize">
    <div class="title_relative">
        <div class="titles">
            <div class="text">
                <h2>Lorem, dolorem</h2>
            </div>
            <div class="text last">
                <h6>Lorem dolorem lorem dolorem</h6>
            </div>
        </div>
    </div>
    <div>
        <img class="background" alt="" src="http://i62.tinypic.com/4sz2gx.jpg" />
    </div>
</div>

CSS

.wrapper {
    border-top-style: solid;
    border-top-width: 1px;
    clear: both;
    position: relative;
}

.title_relative {
    margin: 0 auto;
    max-width: 500px;
    position: relative;
}

.titles {
    color: white !important;
    position: absolute;
    top: 100px;
    text-align: center;
    width: 100%;
}

.text {
    display: inline-block;
    margin: 2px;
    min-height: 50px;
    vertical-align: middle;
}

img.background {
    height: auto !important;
    width: 100% !important;
}

.text.last {
    margin-top: 5px;
}