JSFiddle - React, Tailwind, and code Playground
by josevarela24
HTML
<div class="container header">
<div class="search-table-outter wrapper">
<table class="search-table inner">
<tr>
<th>Time</th>
<th>Icon</th>
<th>Description</th>
<th>Temp</th>
<th>Precip</th>
<th>Wind</th>
</tr>
<tr>
<td>4:11 </td>
<td>Cloud </td>
<td>Partly Cloudy </td>
<td>86 </td>
<td>0% </td>
<td>8.38 mph </td>
</tr>
<tr>
<td>4:11 </td>
<td>Cloud </td>
<td>Partly Cloudy </td>
<td>86 </td>
<td>0% </td>
<td>8.38 mph </td>
</tr>
<tr>
<td>4:11 </td>
<td>Cloud </td>
<td>Partly Cloudy </td>
<td>86 </td>
<td>0% </td>
<td>8.38 mph </td>
</tr>
<tr>
<td>4:11 </td>
<td>Cloud </td>
<td>Partly Cloudy </td>
<td>86 </td>
<td>0% </td>
<td>8.38 mph </td>
</tr>
<tr>
<td>4:11 </td>
<td>Cloud </td>
<td>Partly Cloudy </td>
<td>86 </td>
<td>0% </td>
<td>8.38 mph </td>
</tr>
<tr>
<td>4:11 </td>
<td>Cloud </td>
<td>Partly Cloudy </td>
<td>86 </td>
<td>0% </td>
<td>8.38 mph </td>
</tr>
<tr>
<td>4:11 </td>
<td>Cloud </td>
<td>Partly Cloudy </td>
<td>86 </td>
<td>0% </td>
<td>8.38 mph </td>
</tr>
<tr>
<td>4:11 </td>
<td>Cloud </td>
<td>Partly Cloudy </td>
<td>86 </td>
<td>0% </td>
<td>8.38 mph </td>
</tr>
</table>
</div>
</div>
CSS
body {
color: white;
}
.search-table-outter {
width: auto;
max-width: 735px;
margin-left: auto;
margin-right: auto;
padding-top: 30px;
}
.search-table{
table-layout: fixed;
margin:0px auto 0px auto;
background-color: lightblue
}
.search-table, td, th{
border-collapse:collapse;
border-bottom:1px solid white;
line-height: 10px;
}
th{
padding:5px 7px;
font-size:15px;
}
td{
padding:5px 10px;
height:35px;
}
.search-table-outter { overflow-x: scroll; }
th, td { min-width: 100px; }