I have a code like this:
main {
position: relative;
width: 80%;
float: right;
height: auto;
}
div.container {
width: 95%;
height: auto;
margin: 0 auto;
}
main div.container>table {
width: 10px;
overflow: hidden;
background-color: red;
}
<main>
<div class="container">
<table>
<thead>
<tr>
<th>Nama event</th>
<th>Kategori event</th>
<th>Keterangan event</th>
<th>Waktu event</th>
<th>Lokasi event</th>
<th>Cover</th>
</tr>
</thead>
<tbody>
<tr>
<td>something</td>
<td>something</td>
<td>something</td>
<td>something</td>
<td>something</td>
<td>something</td>
</tr>
</tbody>
</table>
</div>
</main>
See Question&Answers more detail:os