table.xhr { border-collapse:collapse; width: 60% } table.xhr, td.xhr, th.xhr { border:1px solid blue; } table.xhr tr.xhr:nth-child(even) { background: #D0E4F5; } thead.xhr { background-color: #00ffff; text-align:center; } tbody.xhr { background-color: #f0f8ff; font-style:italic; text-align:right } tfoot.xhr { background-color: red; font-weight:bold; text-align:right }