JSFiddle - React, Tailwind, and code Playground

by Rachel Gallen

HTML

<div class="imgcontainer">
  <div class="image1 imgcontainer">
    <p>Algorithm with huge sample data set</p>
  </div>
  <div class="image2 imgcontainer">
    <p>recommendation engine</p>
  </div>
</div>

CSS

.imgcontainer {
  display: inline-block;
  margin-top: 20px;
  margin-left: 80px;
  margin-bottom: 80px;
  background-repeat: no-repeat;
}

.imgcontainer p {
  position: relative;
  top:100px;
  width:110px;
  min-height:80px;
  max-height:200px;
  overflow:auto;
}

.image1 {
  height: 100px;
  width: 100px;
  background-image: url("http://www.rachelgallen.com/images/purpleflowers.jpg");
  background-size: cover;
}

.image2 {
  height: 100px;
  width: 100px;
  background-image: url("http://www.rachelgallen.com/images/yellowflowers.jpg");
  background-size: cover;
}