Responsive table column to row
@media screen and (max-width:800px) {
td,
th {
display: block;
}
}
Or, with flexbox:
@media screen and (max-width: 800px) {
tr {
display: flex;
flex-direction: row;
flex-wrap: wrap;
align-items: center;
}
td,
th {
flex: 1 1 10%;
text-align: center;
}
}