JSFiddle - React, Tailwind, and code Playground

by MrLister

HTML

<div id="header">
<h1> Thriller </h1>
</div>

<div id="week-wrap">

 <div class="figure">
	<div class="figcaption">Text1</div>
	<img src="http://creativephotographymagazine.com/wp-content/uploads/2011/05/Tatra_Mountains_by_RaVeN_82.jpg" />
</div>

<div class="figure">
	<div class="figcaption">Text2</div>
	<img src="http://www.allipadwallpaper.com/wp-content/uploads/tropical-island-ipad-wallpaper-500x500.jpg" />
</div>

<div class="figure">
	<div class="figcaption">Text3</div>
	<img src="http://s4.favim.com/orig/50/beautiful-city-light-night-street-Favim.com-460323.jpg" />
</div>
    
</div>

CSS

body{
	margin: 0 auto; 
	background-color: black;
}

h1 {
	font-family: "Times New Romans", "Times", sans-serif;
}

#week-wrap {border: 1px solid #000; 
	height: auto; 
	white-space: nowrap; 
	max-width: 100%; 
	width: auto; 
	background-color: black;
}

#header {
	border: 1px solid #000;
	background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0, #858585), color-stop(1, #000000));
}

.figure {
    position: relative;
	display: inline-block;
    max-width: 33%;
}

.figure .figcaption {
	text-align: center; 
    width:100%; height:0;
	font-size: 25px; line-height: 0;
	color:white;
    position:absolute; top:50%;
    z-index:1;
}

.figure img {
    display:block;
    max-width: 100%; 
}