JSFiddle - React, Tailwind, and code Playground
HTML
<div id="showcase">
<div id="gm-text">
<p class="gamemode">Section 1</p>
<p class="gamemode">Section 2</p>
<p class="gamemode">Section 3</p>
<p class="gamemode">Section 4</p>
<p class="gamemode">Section 5</p>
<p class="gamemode">Section 6</p>
<p class="gamemode">Section 7</p>
</div>
<div id="gm-image">
<figure>
<figcaption>
<p id="captitle">Section 1</p>
<p id="caption">Section one text.</p>
</figcaption>
</figure>
</div>
</div>
CSS
#main {
width: 50%;
padding: 15px;
margin: 0 auto;
}
.gamemode {
background: #eee;
padding: 19px;
border-bottom: 4px solid #ccc;
}
.gamemode:hover {
background: #ccc;
cursor: pointer;
border-bottom: 4px solid #0093dd;
}
.gamemode:selected {
border-bottom: 4px solid #0093dd;
}
#gm-text {
width: 25%;
display: inline-block;
vertical-align: middle;
clear: both;
float:left;
/*here */
}
#gm-image {
width: 75%;
height: 556px;
background: url(http://www.wallsave.com/wallpapers/1024x768/red-/22118/red-background-desktop-backgrounds-22118.jpg);
background-repeat: no-repeat;
background-position: 50% 50%;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
display: inline-block;
vertical-align: middle;
clear: both;
}
figcaption {
position: absolute;
background: rgba(0, 0, 0, 0.8);
color: #FFF;
margin-top: 415px;
margin-left: -40px;
width: 600px;
padding: 0px 20px;
}
figcaption p {
font-size: 1em;
color: #FFF;
}
#captitle {
font-size: 1.4em;
color: #FFF;
}