table { width: 100%; border-collapse: collapse; } th, td { border: 1px solid #000; padding: 8px; text-align: left; } th { background-color: #f2f2f2; } @media (max-width: 600px) { table, thead, tbody, th, td, tr { display: block; } th { background-color: transparent; } th, td { padding: 8px; border: …