JSFiddle - React, Tailwind, and code Playground
HTML
<table id="table_1" class="responsive display nowrap data-t data-t wpDataTable dataTable dtr-inline" style="" data-described-by="table_1_desc" data-wpdatatable_id="3" role="grid" aria-describedby="table_1_info">
<!-- Table header -->
<thead>
<tr role="row"><th data-class="expand" class="wdtheader sort sorting_disabled column-product-name" style="" rowspan="1" colspan="1">Product Name</th><th class="wdtheader sorting_disabled column-sku" style="" rowspan="1" colspan="1">SKU</th><th class="wdtheader sort sorting_disabled column-embossing" style="" rowspan="1" colspan="1">Embossing</th><th class="wdtheader sort sorting_disabled column-system" style="" rowspan="1" colspan="1">System</th><th class="wdtheader sort sorting_disabled column-size" style="" rowspan="1" colspan="1">Size</th><th class="wdtheader sort numdata integer sorting_disabled column-thickness-mm" style="" rowspan="1" colspan="1">Thickness (mm)</th><th class="wdtheader sort numdata integer sorting_disabled column-wear-layer-mil" style="" rowspan="1" colspan="1">Wear Layer (mil)</th><th class="wdtheader sort numdata integer sorting_disabled column-sqft--box" style="" rowspan="1" colspan="1">SqFt / Box</th><th class="wdtheader sort numdata integer sorting_disabled column-boxes-available" style="" rowspan="1" colspan="1">Boxes Available</th><th class="wdtheader sort numdata float sorting_disabled column-sqft-available" style="" rowspan="1" colspan="1">SqFt Available</th><th class="wdtheader sort sorting_disabled column-warehouse-location" style="" rowspan="1" colspan="1">Warehouse Location</th></tr>
</thead>
<!-- /Table header -->
<!-- Table body -->
<tbody>
<tr id="table_3_row_0" role="row" class="odd">
<td style="" class=" column-product-name" tabindex="0"><span class="responsiveExpander"></span>Rustic...
CSS
table {
border-collapse: collapse;
width: 100%;
color: #444;
}
tr:nth-of-type(2n+1) {
background: #eee none repeat scroll 0 0;
}
th {
background: #696969 none repeat scroll 0 0;
color: #fff;
font-weight: bold;
}
td, th {
border: 1px solid #ccc;
padding: 6px;
text-align: left;
vertical-align: middle;
}
/* responsive code */
@media
only screen and (max-width: 760px),
(min-device-width: 768px) and (max-device-width: 1024px) {
/* Force table to not be like tables anymore */
table, thead, tbody, th, td, tr {
display: block;
}
/* Hide table headers (but not display: none;, for accessibility) */
thead tr {
position: absolute;
top: -9999px;
left: -9999px;
}
tr { border: 1px solid #ccc; }
td {
/* Behave like a "row" */
border: none;
border-bottom: 1px solid #eee;
position: relative;
padding-left: 50%;
}
td:before {
/* Now like a table header */
position: absolute;
/* Top/left values mimic padding */
top: 6px;
left: 6px;
width: 45%;
padding-right: 10px;
white-space: nowrap;
}
/* Grants and Contracts table */
table td:nth-of-type(1)::before { content: "Product Name:"; }
table td:nth-of-type(2)::before { content: "SKU:"; }
table td:nth-of-type(3)::before { content: "Embossing:"; }
table td:nth-of-type(4)::before { content: "System:"; }
table td:nth-of-type(5)::before { content: "Size:"; }
table td:nth-of-type(6)::before { content: "Thickness:"; }
table td:nth-of-type(7)::before { content: "Wear Layer:"; }
table td:nth-of-type(8)::before { content: "SqFt / Box:"; }
table td:nth-of-type(9)::before { content: "Boxes Available:"; }
table td:nth-of-type(10)::before { content: "SqFt Available:"; }
table td:nth-of-type(11)::before { content: "Warehouse Location:"; }
}