<table class="table">
<th>ID</th>
<th>Adı</th>
<th>Soyadı</th>
<tbody>
<tr>
<td data-title="ID">1</td>
<td data-title="Adı">Ali</td>
<td data-title="Soyad">Rodoplu</td>
</tr>
<tr>
<td data-title="ID">2</td>
<td data-title="Adı">Kerem</td>
<td data-title="Soyadı">Özer</td>
</tr>
<tr>
<td data-title="ID">3</td>
<td data-title="Adı">Okan</td>
<td data-title="Soyadı">Bilir</td>
</tr>
<tr>
<td data-title="ID">4</td>
<td data-title="Adı">Emirhan</td>
<td data-title="Soyadı">Dağlıoğlu</td>
</tr>
<tr>
<td data-title="ID">5</td>
<td data-title="Adı">Furkan</td>
<td data-title="Soyadı">Biçer</td>
</tr>
<tr>
<td data-title="ID">6</td>
<td data-title="Adı">Sinan</td>
<td data-title="Soyadı">Erten</td>
</tr>
<tr>
<td data-title="ID">7</td>
<td data-title="Adı">Resul</td>
<td data-title="Soyadı">Özel</td>
</tr>
</tbody>
</table>
@import url(https://fonts.googleapis.com/css?family=Open+Sans:300);
body{font-family: 'Open Sans', sans-serif;}
table,tr,th,td{border:none}
.table{ width: 100%; display: table;}
.table > tbody>tr:nth-child(odd)>th,
.table > tbody > tr:nth-child(odd) > td{background: #f9f9f9}
.table tbody > tr > td,
.table tbody > tr > th{padding: 10px 10px 10px 20px;}
.table tbody > tr > td{border-top:1px solid #ddd;}
th{text-align:left; color: #688a7e; font-weight: bold;}
.table > tbody > tr:hover > td, .table > tbody > tr:hover > th{background: #f5f5f5}
@media
only screen and (max-width: 760px),
(min-device-width: 768px) and (max-device-width: 1024px) {
table, thead, tbody, th, td, tr {
display: block;
}
.table thead tr {
position: absolute;
top: -9999px;
left: -9999px;
}
.table tr { border: 1px solid #ccc; }
.table td {
border: none;
border-bottom: 1px solid #eee;
position: relative;
padding-left: 50%!important;
}
.table td:before {
position: absolute;
top: 6px;
left: 6px;
width: 45%;
padding-right: 10px;
white-space: nowrap;
font-weight:bold;
}
.table td:before { content: attr(data-title);
}
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.