@media screen { body { background-color: lightgreen;} h1 { text-align: center;} table, tr, td, th { border: 1px solid; background-color: white;} th, td { text-align: center; width: 150px; height: 50px} th { font-size: 20px;} td.joho { color: green; font-weight: bold;} th { background-color: aqua;} table { margin-left: auto; margin-right: auto;} } @media print { h1 { text-align: center;} table, tr, td, th { border: 1px soli; background-color: white; background-color: black;} th, td { text-align: center; width: 200px; height: 45px; font-size: 15px;} table { margin-left: auto; margin-right: auto;} } @media (orientation: portrait) { h1{ background-color: white; width: 10em; float: left; padding: 1px;} } @media (orientation: landscape) { h1 { border-bottom: solid 3px green; } }