JSFiddle - React, Tailwind, and code Playground

by mstefanko

HTML

<div class="step-table-header">
<span class="step-header-name">Step 1</span>
<div class="step-header-btn"></div>
</div>
<div class="step-table-wrapper">
    <div class="step-table">
     <table>
    <thead>
        <tr>
           <th colspan="2">Title</th>
           <th>Score</th>
          <th colspan="2">Completion</th>
        </tr>
      </thead>
      <tbody>
            <tr id="{{cid}}" class="step-row">
                <td class="step-table-icon">ICON</td>
                <td class="step-table-title">TITLE</td>
                <td class="step-table-score">54.2</td>
                <td class="step-table-completion-count">2 of 4</td>
                <td class="step-table-percent-completed">50%</td>
            </tr>
          <tr id="{{cid}}" class="step-row">
                <td class="step-table-icon">ICON</td>
                <td class="step-table-title">TITLE</td>
                <td class="step-table-score">66.7</td>
                <td class="step-table-completion-count">2 of 4</td>
                <td class="step-table-percent-completed">50%</td>
            </tr>
          <tr id="{{cid}}" class="step-row">
                <td class="step-table-icon">ICON</td>
                <td class="step-table-title">TITLE</td>
                <td class="step-table-score">14.2</td>
                <td class="step-table-completion-count">4 of 4</td>
                <td class="step-table-percent-completed">100%</td>
            </tr>
         </tbody>
        </table>
    </div>
</div>

CSS

.step-table-header {
color: #FFFFFF;
font-size:12px;
font-family:Arial;
font-weight:bold;
vertical-align:middle;
width: 388px;
margin-left: 5px;
padding: 7px;
background: rgb(136,191,232); /* Old browsers */
background: -moz-linear-gradient(top, rgba(136,191,232,1) 0%, rgba(43,131,191,1) 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(136,191,232,1)), color-stop(100%,rgba(43,131,191,1))); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, rgba(136,191,232,1) 0%,rgba(43,131,191,1) 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, rgba(136,191,232,1) 0%,rgba(43,131,191,1) 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top, rgba(136,191,232,1) 0%,rgba(43,131,191,1) 100%); /* IE10+ */
background: linear-gradient(to bottom, rgba(136,191,232,1) 0%,rgba(43,131,191,1) 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#88bfe8', endColorstr='#2b83bf',GradientType=0 ); /* IE6-9 */
}.step-table-wrapper {  
    margin-left:5px;
    width: 400px;
    height: 300px;
    border:1px solid #C8C8C8;
    background-color: #C8C8C8;
}.step-table-h th{
	background-color: #e3e3e3;
    border-bottom: 1px solid #999999;
    vertical-align:middle;
	text-align:left;
	padding:7px;
	font-size:12px;
	font-family:Arial;
	font-weight:normal;
	color:#000000;
    width: 100%;
}.step-table {
	margin:0px;padding:0px;
	width:100%;
    height: 300px;
    overflow: auto;
    background-color: #D6D6D6;
}.step-table table{
	width:100%;
	margin:0px;
    padding:0px;
}.step-table th{
	background-color: #e3e3e3;
    border-bottom: 1px solid #999999;
    vertical-align:middle;
	text-align:left;
	padding:7px;
	font-size:12px;
	font-family:Arial;
	font-weight:normal;
	color:#000000;
    
}.step-table tr:last-child td:last-child {
	-moz-border-radius-bottomright:0px;
	-webkit-border-bottom-right-radius:0px;
	border-bottom-right-radius:0px;
}.step-table table tr:first-child...