JSFiddle - React, Tailwind, and code Playground

by Vipin Patil

HTML

<div class="container">
    <div class="row">
         
        <div id="no-more-tables">
            <table class="col-md-12 table-bordered table-striped table-condensed cf">
        		<thead class="cf">
        			<tr>

        				<th class="numeric">year</th>
        				<th class="numeric">opponent name</th>
        				<th class="numeric">opponent school</th>
        				<th class="numeric">round</th>
        				<th class="numeric">Category </th>
        				<th class="numeric">Score </th>
        				<th class="numeric">Result</th>
        			</tr>
        		</thead>
        		<tbody>
        			<tr>
        				<td data-title="Year ">2015</td>
        				<td data-title="Opponent Name">Jamnabai Narsee School</td>
        				<td data-title="Opponent School" class="numeric">DAV Mumbai</td>
        				<td data-title="Round" class="numeric">1</td>
        				<td data-title="Category" class="numeric">U-11
BOYS
singles</td>
        				<td data-title="Score" class="numeric">GAME 1 : 15/3 GAME 2 : 15/6</td>
        				<td data-title="Result" class="numeric">WON </td>
        				 	</tr>
        			 <tr>
        				<td data-title="Year ">2015</td>
        				<td data-title="Opponent Name">Jamnabai Narsee School</td>
        				<td data-title="Opponent School" class="numeric">DAV Mumbai</td>
        				<td data-title="Round" class="numeric">1</td>
        				<td data-title="Category" class="numeric">U-11
BOYS
singles</td>
        				<td data-title="Score" class="numeric">GAME 1 : 15/3 GAME 2 : 15/6</td>
        				<td data-title="Result" class="numeric">WON </td>
        				 	</tr>
        			 <tr>
        				<td data-title="Year ">2015</td>
        				<td data-title="Opponent Name">Jamnabai Narsee School</td>
        				<td data-title="Opponent School" class="numeric">DAV Mumbai</td>
        				<td data-title="Round" class="numeric">1</td>
        				<td data-title="Category" class="numeric">U-11
BOYS
singles</td>
        				<td...

CSS

@import url('//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap-theme.min.css');

body{text-transform:capitalize;}
th{background-color:blue;}
table{padding:3px;} 
@media only screen and (max-width: 800px) {
    
    /* Force table to not be like tables anymore */
	#no-more-tables table, 
	#no-more-tables thead, 
	#no-more-tables tbody, 
	#no-more-tables th, 
	#no-more-tables td, 
	#no-more-tables tr { 
		display: block; 
	}
 
	/* Hide table headers (but not display: none;, for accessibility) */
	#no-more-tables thead tr { 
		position: absolute;
		top: -9999px;
		left: -9999px;
	}
 
	#no-more-tables tr { border: 1px solid #ccc; }
 
	#no-more-tables td { 
		/* Behave  like a "row" */
		border: none;
		border-bottom: 1px solid #eee; 
		position: relative;
		padding-left: 50%; 
		white-space: normal;
		text-align:left;
	}
 
	#no-more-tables 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;
		text-align:left;
		font-weight: bold;
	}
 
	/*
	Label the data
	*/
	#no-more-tables td:before { content: attr(data-title); }
}