@media screen and (max-width: 600px) { table {width:100%; padding: 20px;} thead {display: none;} tbody td {display: block; text-align:center; padding: 25px;} tbody td:before { content: attr(data-th); display: block; text-align:center; padding: 20px; } } td { vertical-align: top; padding: 20px; }