JSFiddle - React, Tailwind, and code Playground
HTML
<div id="masthead">
<div id="left-stripe"></div>
<div id="headline-container">
<div id="headline">{test}</div>
<div id="intro-text">{intro_text}</div>
</div>
<div id="right-stripe"></div>
</div>
CSS
div {}
#masthead {
height: 260px;
width: 600px;
background-color: gray;
position: relative;
background: url('http://www.runnerskitchen.com/wp-content/uploads/2010/06/brooklyn-bridge.jpg');
}
div#left-stripe{
position: absolute;
top: 20px;
background-color:#fff;
height: 3px;
width:100%;
}
div#right-stripe{
background-color:#fff;
height: 3px;
width:100px;
margin-top: 20px;
display: none;
}
div#headline-container {
padding:none;
background: transparent url('http://www.runnerskitchen.com/wp-content/uploads/2010/06/brooklyn-bridge.jpg') -400px 0 no-repeat;
text-align: center;
position: absolute;
right: 40px;
left:400px;
height: 260px;
}
div#headline {
text-align:left;
color: #fff;
font-size: 200%;
}
div#intro-text {
text-align: left;
color: #fff;
}