JSFiddle - React, Tailwind, and code Playground

by Hushme

HTML

<ul>
    <li>
        <img src="#">
        <div class="divone">
            <div class="two">
            <h1>My Title</h1>
            <h5>Subtitle</h5>
            </div>
        </div>
    </li>
</ul>

CSS

ul {
    background: #CCC;
    height: 1000%;
    width: 100%;
    list-style-position: outside;
    margin: 0; padding: 0;
    position: absolute;
}

li {
 background-color: #EBEBEB;
    border-bottom: 1px solid #CCCCCC;
    border-right: 1px solid #CCCCCC;
    display: table;
    height: 180px;
    overflow: hidden;
    width: 200px;
}
.divone{
       display: table-cell;
    margin: 0 auto;
    text-align: center;
    vertical-align: middle;
    width: 100%; 
   
}
img {
    width: 100%;
    height: 410px;
}

.wrapper {
  position: absolute;
}
.two{
    
    
}

h1 {
}