@media print {table,tr,td} @media (orientation: portrait){ h1{width: 10ex; float: left; font-size: 1em; background: white; padding: 1ex;} } @media (orientation: landscape) { h1{text-decoration: underline;} } body {background-color: #1d78ee8e;} td.sun {background-color: red;} .mon {background-color: rgba(236, 139, 207, 0.664);} .thu{background-color: orange;} .wed{background-color: aquamarine;} .thr{background-color: rgb(71, 255, 46);} .fri{background-color: gold;} table{ border: yellow; text-align: center; caption-side: top; background-color: rgba(176, 209, 238, 0.788); }