table { width: 90%; margin-left: auto; margin-right: auto; } caption { font-weight: bold; font-size: 20px; color: #666; font-family: sans-serif; text-decoration: unset; margin-top: 10px; } table, th, td { border: 1px solid black; border-collapse: collapse; padding: 2px; text-align: center; } @media only screen and (max-device-width: 480px) { table { width: 90%; margin-left: auto; margin-right: auto; font-size: 35px; } caption { font-weight: bold; font-size: 35px; color: #666; font-family: sans-serif; text-decoration: unset; margin-top: 10px; } table, th, td { border: 1px solid black; border-collapse: collapse; padding: 2px; text-align: center; } } @media only screen and (min-device-width: 480px) and (max-device-width: 1024px) { }